summaryrefslogtreecommitdiff
path: root/config/routes.rb
diff options
context:
space:
mode:
Diffstat (limited to 'config/routes.rb')
-rw-r--r--config/routes.rb17
1 files changed, 11 insertions, 6 deletions
diff --git a/config/routes.rb b/config/routes.rb
index fe92ba5..8c91ee1 100644
--- a/config/routes.rb
+++ b/config/routes.rb
@@ -1,23 +1,28 @@
Leaguer::Application.routes.draw do
+
resources :brackets
- resources :sessions
+ resources :sessions, only: [:new, :create, :destroy]
resources :users
resources :games
- resources :tournaments
-
resources :pms
resources :alerts
- resources :teams
+ resource :server, only: [:show, :edit, :update]
- resources :matches
+ #match 'simple_captcha/:id', :to => 'simple_captcha#show', :as => :simple_captcha
+
+ resources :teams
+ resources :tournaments do
+ resources :matches, only: [:index, :show, :update]
+ end
- resources :servers
+ root to: 'static#homepage'
+ get '/testsvg', to: 'static#test'
# The priority is based upon order of creation: first created -> highest priority.
# See how all your routes lay out with "rake routes".