diff options
Diffstat (limited to 'users/config/routes.rb')
-rw-r--r-- | users/config/routes.rb | 10 |
1 files changed, 10 insertions, 0 deletions
diff --git a/users/config/routes.rb b/users/config/routes.rb new file mode 100644 index 0000000..cfc0407 --- /dev/null +++ b/users/config/routes.rb @@ -0,0 +1,10 @@ +Rails.application.routes.draw do + + get "log_in" => "sessions#new", :as => "log_in" + get "log_out" => "sessions#destroy", :as => "log_out" + resources :sessions, :only => [:new, :create, :update, :destroy] + + get "sign_up" => "users#new", :as => "sign_up" + resources :users, :only => [:new, :create] + +end |