Merge branch 'atomaka/feature/api-subdomain' into 'master'
Constrain API to the api subdomain See merge request !23
This commit is contained in:
commit
550fc91138
1 changed files with 6 additions and 4 deletions
|
@ -29,10 +29,12 @@ Rails.application.routes.draw do
|
||||||
resources :versions, only: [:show]
|
resources :versions, only: [:show]
|
||||||
end
|
end
|
||||||
|
|
||||||
namespace :api do
|
constraints subdomain: 'api' do
|
||||||
namespace :v1 do
|
namespace :api, path: nil do
|
||||||
resources :cards, only: [:index, :show]
|
namespace :v1 do
|
||||||
resources :links, only: [:index, :show]
|
resources :cards, only: [:index, :show]
|
||||||
|
resources :links, only: [:index, :show]
|
||||||
|
end
|
||||||
end
|
end
|
||||||
end
|
end
|
||||||
end
|
end
|
||||||
|
|
Loading…
Reference in a new issue