summaryrefslogtreecommitdiff
path: root/config/routes.rb
diff options
context:
space:
mode:
Diffstat (limited to 'config/routes.rb')
-rw-r--r--config/routes.rb16
1 files changed, 10 insertions, 6 deletions
diff --git a/config/routes.rb b/config/routes.rb
index 97e82f8..3a23a68 100644
--- a/config/routes.rb
+++ b/config/routes.rb
@@ -1,21 +1,25 @@
Leaguer::Application.routes.draw do
- 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]
+ 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".