summaryrefslogtreecommitdiff
path: root/config
diff options
context:
space:
mode:
authorTomer Kimia <tkimia@purdue.edu>2014-03-04 17:24:09 -0500
committerTomer Kimia <tkimia@purdue.edu>2014-03-04 17:24:09 -0500
commit8e005f8d325a43e378f21a1042df6a4baf79c12f (patch)
tree5e12f2ce417112fad32b84a65569a4120079d0b8 /config
parentc45d69d4a7e6232d088986a78f6e12a25ae7be63 (diff)
routes has redirection
Diffstat (limited to 'config')
-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