config/routes.rb in foreman_bootdisk-21.0.1 vs config/routes.rb in foreman_bootdisk-21.0.2

- old
+ new

@@ -12,13 +12,15 @@ end end namespace :api, defaults: { format: 'json' } do scope '(:apiv)', module: :v2, defaults: { apiv: 'v2' }, apiv: /v1|v2/, constraints: ApiConstraints.new(version: 2, default: true) do - get 'generic', to: 'disks#generic' - constraints(id: %r{[^/]+}) do - get 'hosts/:id', to: 'disks#host' - get 'subnets/:id', to: 'subnet_disks#subnet' + scope :bootdisk do + get 'generic', to: 'disks#generic' + constraints(id: %r{[^/]+}) do + get 'hosts/:id', to: 'disks#host' + get 'subnets/:id', to: 'subnet_disks#subnet' + end end end end end