config/routes.rb in foreman_ansible-2.3.1 vs config/routes.rb in foreman_ansible-2.3.2

- old
+ new

@@ -2,29 +2,31 @@ # rubocop:disable BlockLength Rails.application.routes.draw do namespace :api do scope '(:apiv)', - :module => :v2, - :defaults => { :apiv => 'v2' }, - :apiv => /v1|v2/, + :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 + post :assign_ansible_roles end collection do post :multiple_play_roles end end resources :hostgroups, :only => [] do member do post :play_roles get :ansible_roles + post :assign_ansible_roles end collection do post :multiple_play_roles end end @@ -50,10 +52,11 @@ resources :ansible_roles, :only => [:index, :destroy] do collection do get :import post :confirm_import + get 'auto_complete_search' end end resources :ansible_variables, :except => [:show, :new, :create] do resources :lookup_values, :only => [:index, :create, :update, :destroy] @@ -64,12 +67,12 @@ end end namespace :api do scope '(:apiv)', - :module => :v2, - :defaults => { :apiv => 'v2' }, - :apiv => /v1|v2/, + :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