summaryrefslogtreecommitdiff
path: root/config
diff options
context:
space:
mode:
Diffstat (limited to 'config')
-rw-r--r--config/routes.rb76
1 files changed, 36 insertions, 40 deletions
diff --git a/config/routes.rb b/config/routes.rb
index 8a06cff..022ce42 100644
--- a/config/routes.rb
+++ b/config/routes.rb
@@ -1,14 +1,12 @@
Leaguer::Application.routes.draw do
- #creates sessions as a resource but limits it to these actions
- resources :sessions, only: [:new, :create, :destroy]
-
- match 'signup', to: 'users#new', via: 'get'
- match 'signin', to: 'sessions#new', via: 'get'
- match 'signout', to: 'sessions#destroy', via: 'delete'
+ #creates sessions as a resource but limits it to these actions
+ resources :sessions, only: [:new, :create, :destroy]
resources :users
+ resources :games
+
resources :pms
resources :alerts
@@ -21,8 +19,6 @@ Leaguer::Application.routes.draw do
resources :servers
- resources :games
-
root to: 'static#homepage'
# The priority is based upon order of creation: first created -> highest priority.
@@ -32,51 +28,51 @@ Leaguer::Application.routes.draw do
# root 'welcome#index'
# Example of regular route:
- # get 'products/:id' => 'catalog#view'
+ # get 'products/:id' => 'catalog#view'
# Example of named route that can be invoked with purchase_url(id: product.id)
- # get 'products/:id/purchase' => 'catalog#purchase', as: :purchase
+ # get 'products/:id/purchase' => 'catalog#purchase', as: :purchase
# Example resource route (maps HTTP verbs to controller actions automatically):
- # resources :products
+ # resources :products
# Example resource route with options:
- # resources :products do
- # member do
- # get 'short'
- # post 'toggle'
- # end
+ # resources :products do
+ # member do
+ # get 'short'
+ # post 'toggle'
+ # end
#
- # collection do
- # get 'sold'
- # end
- # end
+ # collection do
+ # get 'sold'
+ # end
+ # end
# Example resource route with sub-resources:
- # resources :products do
- # resources :comments, :sales
- # resource :seller
- # end
+ # resources :products do
+ # resources :comments, :sales
+ # resource :seller
+ # end
# Example resource route with more complex sub-resources:
- # resources :products do
- # resources :comments
- # resources :sales do
- # get 'recent', on: :collection
- # end
- # end
+ # resources :products do
+ # resources :comments
+ # resources :sales do
+ # get 'recent', on: :collection
+ # end
+ # end
# Example resource route with concerns:
- # concern :toggleable do
- # post 'toggle'
- # end
- # resources :posts, concerns: :toggleable
- # resources :photos, concerns: :toggleable
+ # concern :toggleable do
+ # post 'toggle'
+ # end
+ # resources :posts, concerns: :toggleable
+ # resources :photos, concerns: :toggleable
# Example resource route within a namespace:
- # namespace :admin do
- # # Directs /admin/products/* to Admin::ProductsController
- # # (app/controllers/admin/products_controller.rb)
- # resources :products
- # end
+ # namespace :admin do
+ # # Directs /admin/products/* to Admin::ProductsController
+ # # (app/controllers/admin/products_controller.rb)
+ # resources :products
+ # end
end