diff --git a/config/routes.rb b/config/routes.rb index 6bf69ac..2f16e30 100644 --- a/config/routes.rb +++ b/config/routes.rb @@ -5,6 +5,7 @@ Thingspeak::Application.routes.draw do # handle subdomain routes match '/', :to => 'subdomains#index', :constraints => { :subdomain => 'api' } match 'crossdomain', :to => 'subdomains#crossdomain', :constraints => { :subdomain => 'api' } + match 'crossdomain', :to => 'subdomains#crossdomain' root :to => 'pages#home'