diff options
Diffstat (limited to 'config')
-rw-r--r-- | config/routes.rb | 8 |
1 files changed, 7 insertions, 1 deletions
diff --git a/config/routes.rb b/config/routes.rb index 18f89d4..0adafbe 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 @@ -7,8 +9,12 @@ Leaguer::Application.routes.draw do resources :matches + resources :tournaments + 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". |