From ab32f5dad9d7b25cb081879b20136f0b19d7af00 Mon Sep 17 00:00:00 2001 From: Andrew Tomaka Date: Wed, 4 Nov 2015 14:18:40 -0500 Subject: [PATCH] Allow api subdomain on staging to work too --- config/routes.rb | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/config/routes.rb b/config/routes.rb index c5dd020..4f0ce00 100644 --- a/config/routes.rb +++ b/config/routes.rb @@ -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]