config/routes.rb in foreman_ansible-5.0.0 vs config/routes.rb in foreman_ansible-5.0.1
- old
+ new
@@ -70,10 +70,10 @@
namespace :api do
scope '(:apiv)',
:module => :v2,
:defaults => { :apiv => 'v2' },
:apiv => /v1|v2/,
- :constraints => ApiConstraints.new(:version => 2) do
+ :constraints => ApiConstraints.new(:version => 2, :default => true) do
resources :ansible_roles, :only => [:show, :index, :destroy] do
collection do
put :import
put :obsolete
get :fetch