Project

General

Profile

Revision b8b23c15

Added by David Davis over 6 years ago

Fixes #14322 - Fixing API route scope

View differences:

config/routes.rb
20 20

  
21 21
  resources :registries, :except => [:show]
22 22

  
23
  scope :foreman_docker, :path => '/docker' do
23
  scope path: '/docker', as: :foreman_docker do
24 24
    namespace :api, :defaults => { :format => 'json' } do
25 25
      scope "(:apiv)", :module => :v2, :defaults => { :apiv => 'v2' }, :apiv => /v2/,
26 26
                       :constraints => ApiConstraints.new(:version => 2) do

Also available in: Unified diff