summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--config/routes.rb4
1 files changed, 4 insertions, 0 deletions
diff --git a/config/routes.rb b/config/routes.rb
index 022ce42..85f063e 100644
--- a/config/routes.rb
+++ b/config/routes.rb
@@ -1,6 +1,10 @@
Leaguer::Application.routes.draw do
#creates sessions as a resource but limits it to these actions
+ match '/signup', to: 'users#new', via: 'get'
+ match '/signin', to: 'sessions#new', via: 'get'
+ match '/signout', to: 'sessions#destroy', via: 'get'
+
resources :sessions, only: [:new, :create, :destroy]
resources :users