Project

General

Profile

« Previous | Next » 

Revision a7e5964a

Added by Romain Vrignaud over 10 years ago

fixes #3965 Change API endpoint for chef_proxy to be the same as Foreman's

View differences:

lib/chefproxy_api.rb
log_halt(401, "Unauthorized : " + env['sinatra.error'].message )
end
post "/facts" do
post "/api/hosts/facts" do
Proxy::Authentication::Chef.new.authenticated(request) do |content|
Proxy::ChefProxy::Facts.new.post_facts(content)
end
end
post "/reports" do
post "/api/reports" do
Proxy::Authentication::Chef.new.authenticated(request) do |content|
Proxy::ChefProxy::Reports.new.post_report(content)
end

Also available in: Unified diff