1
0
Fork 0

Allow api subdomain on staging to work too

This commit is contained in:
Andrew Tomaka 2015-11-04 14:18:40 -05:00
parent 550fc91138
commit ab32f5dad9

View file

@ -29,7 +29,7 @@ Rails.application.routes.draw do
resources :versions, only: [:show] resources :versions, only: [:show]
end end
constraints subdomain: 'api' do constraints subdomain: /^api(\.|$)/ do
namespace :api, path: nil do namespace :api, path: nil do
namespace :v1 do namespace :v1 do
resources :cards, only: [:index, :show] resources :cards, only: [:index, :show]