config/routes.rb in foreman_ansible-3.0.9 vs config/routes.rb in foreman_ansible-4.0.0

- old
+ new

@@ -6,11 +6,10 @@ scope '(:apiv)', :module => :v2, :defaults => { :apiv => 'v2' }, :apiv => /v1|v2/, :constraints => ApiConstraints.new(:version => 2) do - constraints(:id => %r{[^\/]+}) do resources :hosts, :only => [] do member do post :play_roles get :ansible_roles @@ -73,11 +72,10 @@ scope '(:apiv)', :module => :v2, :defaults => { :apiv => 'v2' }, :apiv => /v1|v2/, :constraints => ApiConstraints.new(:version => 2) do - resources :ansible_roles, :only => [:show, :index, :destroy] do collection do put :import put :obsolete get :fetch @@ -97,9 +95,10 @@ collection do post :hosts get :hosts post :hostgroups get :hostgroups + post :schedule end end end end end