Sha256: 795f913ca4179a5a8df77014cd56c82dbf82dee8c70de3008390904e6215c682
Contents?: true
Size: 1.73 KB
Versions: 4
Compression:
Stored size: 1.73 KB
Contents
# rubocop:disable BlockLength Rails.application.routes.draw do namespace :api do 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 end collection do post :multiple_play_roles end end resources :hostgroups, :only => [] do member do post :play_roles get :ansible_roles end collection do post :multiple_play_roles end end end end end scope '/ansible' do constraints(:id => %r{[^\/]+}) do resources :hosts, :only => [] do member do get :play_roles end collection do get :multiple_play_roles end end resources :hostgroups, :only => [] do member do get :play_roles end end end resources :ansible_roles, :only => [:index, :destroy] do collection do get :import post :confirm_import end end namespace :api do 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 end end end end end end # rubocop:enable BlockLength
Version data entries
4 entries across 4 versions & 1 rubygems
Version | Path |
---|---|
foreman_ansible-2.2.13 | config/routes.rb |
foreman_ansible-2.2.12 | config/routes.rb |
foreman_ansible-2.2.11 | config/routes.rb |
foreman_ansible-2.2.10 | config/routes.rb |