summaryrefslogtreecommitdiff
path: root/config/routes.rb
diff options
context:
space:
mode:
Diffstat (limited to 'config/routes.rb')
-rw-r--r--config/routes.rb14
1 files changed, 9 insertions, 5 deletions
diff --git a/config/routes.rb b/config/routes.rb
index 97e82f8..5c5bece 100644
--- a/config/routes.rb
+++ b/config/routes.rb
@@ -1,21 +1,25 @@
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
resources :games
- resources :tournaments
-
resources :pms
resources :alerts
+ resource :server, only: [:show, :edit, :update]
+
resources :teams
+ resources :tournaments do
+ resources :matches
+ end
- resources :matches
- 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".