From 8eced68213046145963ae27e6e9495b9d5458b98 Mon Sep 17 00:00:00 2001 From: elijah Date: Thu, 18 Apr 2013 00:55:02 -0700 Subject: remove 'api' subdomain restriction --- users/config/routes.rb | 14 ++++++-------- 1 file changed, 6 insertions(+), 8 deletions(-) diff --git a/users/config/routes.rb b/users/config/routes.rb index c50cb15..9a9a40e 100644 --- a/users/config/routes.rb +++ b/users/config/routes.rb @@ -1,13 +1,11 @@ Rails.application.routes.draw do - constraints :subdomain => "api" do - namespace "api", { module: "v1", - path: "/1/", - defaults: {format: 'json'} } do - resources :sessions, :only => [:new, :create, :update] - delete "logout" => "sessions#destroy", :as => "logout" - resources :users, :only => [:create, :update] - end + namespace "api", { module: "v1", + path: "/1/", + defaults: {format: 'json'} } do + resources :sessions, :only => [:new, :create, :update] + delete "logout" => "sessions#destroy", :as => "logout" + resources :users, :only => [:create, :update] end get "login" => "sessions#new", :as => "login" -- cgit v1.2.3