diff options
author | elijah <elijah@riseup.net> | 2013-04-18 00:55:02 -0700 |
---|---|---|
committer | elijah <elijah@riseup.net> | 2013-04-18 00:55:02 -0700 |
commit | 8eced68213046145963ae27e6e9495b9d5458b98 (patch) | |
tree | 056d4df67df86a70a3a0ccf7e95157e87b0aacdf /users/config | |
parent | 25ef7a4c41cfca4c3d481236d8c75a0d4c54f3b9 (diff) |
remove 'api' subdomain restriction
Diffstat (limited to 'users/config')
-rw-r--r-- | users/config/routes.rb | 14 |
1 files 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" |