summaryrefslogtreecommitdiff
path: root/config
diff options
context:
space:
mode:
Diffstat (limited to 'config')
-rw-r--r--config/routes.rb10
1 files changed, 8 insertions, 2 deletions
diff --git a/config/routes.rb b/config/routes.rb
index 97e82f8..178b7ad 100644
--- a/config/routes.rb
+++ b/config/routes.rb
@@ -1,5 +1,7 @@
Leaguer::Application.routes.draw do
- resources :sessions
+
+ #creates sessions as a resource but limits it to these actions
+ resources :sessions, only: [:new, :create, :destroy]
resources :users
@@ -15,7 +17,11 @@ Leaguer::Application.routes.draw do
resources :matches
- resources :servers
+ resources :tournaments
+
+ resource :server, only: [:show, :edit, :update]
+
+ 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".