diff options
author | Azul <azul@leap.se> | 2012-12-12 00:09:57 +0100 |
---|---|---|
committer | Azul <azul@leap.se> | 2012-12-12 00:09:57 +0100 |
commit | 0871fd8938952d8b718c64d4d45535f7ae9fd742 (patch) | |
tree | ded6504b15bab40b42dd4bd60e4df2571be8bc61 /users/config/routes.rb | |
parent | 7a9a4f4e7bd090fd27e05b03f93832d79f5f8db2 (diff) | |
parent | 1a26988cb7ff30061473f4a781166b184b3037ce (diff) |
Merge branch 'master' into develop
Diffstat (limited to 'users/config/routes.rb')
-rw-r--r-- | users/config/routes.rb | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/users/config/routes.rb b/users/config/routes.rb index 1d144b4..6de216f 100644 --- a/users/config/routes.rb +++ b/users/config/routes.rb @@ -1,5 +1,10 @@ Rails.application.routes.draw do + scope "/1", :module => "V1", defaults: {format: 'json'} do + resources :sessions, :only => [:new, :create, :update, :destroy] + resources :users, :only => [:create] + end + get "login" => "sessions#new", :as => "login" get "logout" => "sessions#destroy", :as => "logout" resources :sessions, :only => [:new, :create, :update, :destroy] |