summaryrefslogtreecommitdiff
path: root/users/config
diff options
context:
space:
mode:
authorazul <azul@riseup.net>2013-03-01 03:50:26 -0800
committerazul <azul@riseup.net>2013-03-01 03:50:26 -0800
commita91b77e5b60bb467c2e12fec8bd04d028896ae53 (patch)
tree9f25940168c0c2312eabfcf245c8d71172bd2ba5 /users/config
parent2eaa2238224408532b5e4eb41662e6dece7ac390 (diff)
parent4a92bab4d8c231a17a14afc81c391f9a1f91c063 (diff)
Merge pull request #32 from azul/feature/api-version-1-fixes
Feature: API version 1 fixes
Diffstat (limited to 'users/config')
-rw-r--r--users/config/routes.rb9
1 files changed, 5 insertions, 4 deletions
diff --git a/users/config/routes.rb b/users/config/routes.rb
index 2cd1740..c50cb15 100644
--- a/users/config/routes.rb
+++ b/users/config/routes.rb
@@ -1,17 +1,18 @@
Rails.application.routes.draw do
constraints :subdomain => "api" do
- namespace "api", { module: "V1",
+ namespace "api", { module: "v1",
path: "/1/",
defaults: {format: 'json'} } do
- resources :sessions, :only => [:new, :create, :update, :destroy]
+ resources :sessions, :only => [:new, :create, :update]
+ delete "logout" => "sessions#destroy", :as => "logout"
resources :users, :only => [:create, :update]
end
end
get "login" => "sessions#new", :as => "login"
- get "logout" => "sessions#destroy", :as => "logout"
- resources :sessions, :only => [:new, :create, :update, :destroy]
+ delete "logout" => "sessions#destroy", :as => "logout"
+ resources :sessions, :only => [:new, :create, :update]
get "signup" => "users#new", :as => "signup"
resources :users do