1
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]
end
constraints subdomain: 'api' do
constraints subdomain: /^api(\.|$)/ do
namespace :api, path: nil do
namespace :v1 do
resources :cards, only: [:index, :show]