Constrain API to the api subdomain
This commit is contained in:
parent
4555334d05
commit
2f52a92c67
1 changed files with 6 additions and 4 deletions
|
@ -29,10 +29,12 @@ Rails.application.routes.draw do
|
|||
resources :versions, only: [:show]
|
||||
end
|
||||
|
||||
namespace :api do
|
||||
namespace :v1 do
|
||||
resources :cards, only: [:index, :show]
|
||||
resources :links, only: [:index, :show]
|
||||
constraints subdomain: 'api' do
|
||||
namespace :api, path: nil do
|
||||
namespace :v1 do
|
||||
resources :cards, only: [:index, :show]
|
||||
resources :links, only: [:index, :show]
|
||||
end
|
||||
end
|
||||
end
|
||||
end
|
||||
|
|
Loading…
Reference in a new issue