summaryrefslogtreecommitdiff
path: root/config/routes.rb
diff options
context:
space:
mode:
Diffstat (limited to 'config/routes.rb')
-rw-r--r--config/routes.rb10
1 files changed, 10 insertions, 0 deletions
diff --git a/config/routes.rb b/config/routes.rb
index 3bad42d..bc995e3 100644
--- a/config/routes.rb
+++ b/config/routes.rb
@@ -1,4 +1,12 @@
Leaguer::Application.routes.draw do
+
+ #creates sessions as a resource but limits it to these actions
+ resources :sessions, only: [:new, :create, :destroy]
+
+ match 'signup', to: 'users#new', via: 'get'
+ match 'signin', to: 'sessions#new', via: 'get'
+ match 'signout', to: 'sessions#destroy', via: 'delete'
+
resources :users
resources :games
@@ -15,6 +23,8 @@ Leaguer::Application.routes.draw do
resources :servers
+ root to: 'static#homepage'
+
# The priority is based upon order of creation: first created -> highest priority.
# See how all your routes lay out with "rake routes".