diff options
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] |