ensl.org/config/routes.rb

139 lines
3 KiB
Ruby
Raw Normal View History

Ensl::Application.routes.draw do
2014-04-26 17:47:17 +00:00
%w(403 404 422 500).each do |code|
get code, to: "errors#show", code: code
2014-04-26 17:47:17 +00:00
end
namespace :api do
namespace :v1 do
resources :users, only: [:show, :index]
2016-04-16 23:05:18 +00:00
resources :teams, only: [:show]
2015-08-01 15:20:49 +00:00
resources :servers, only: [:index]
2015-08-01 15:34:01 +00:00
resources :maps, only: [:index]
end
end
2015-08-01 15:20:49 +00:00
root to: "articles#news_index"
2015-08-01 15:20:49 +00:00
resources :articles do
resources :versions
end
get 'contests/del_map'
get 'contests/scores'
get 'contests/historical', to: "contests#historical"
2015-08-01 15:20:49 +00:00
resources :contests do
get "current", on: :collection
2015-08-01 15:20:49 +00:00
end
resources :log_events
2015-08-01 15:20:49 +00:00
resources :categories
resources :options
resources :polls
get 'comments/quote'
2015-08-01 15:20:49 +00:00
resources :comments
resources :shoutmsgs, except: :index
2015-08-01 15:20:49 +00:00
resources :teamers
resources :teams
resources :gathers
resources :gatherers
resources :groups
resources :groupers
resources :forumers
resources :topics
resources :matches
get 'forums/up'
get 'forums/down'
2015-08-01 15:20:49 +00:00
resources :forums
resources :users
resources :locks
resources :contesters
get "contests/:id/confirmedmatches" => "contests#confirmed_matches", as: :confirmed_matches
2015-08-01 15:20:49 +00:00
resources :contests
resources :challenges
resources :servers
resources :predictions
resources :rounds
resources :getes do |m|
get :admin, to: "getes#admin", on: :collection
get :ref, to: "getes#ref"
2014-05-10 08:44:48 +00:00
end
2015-08-01 15:20:49 +00:00
resources :maps
resources :logs
resources :log_files
resources :directories
resources :data_files
2015-08-01 15:20:49 +00:00
resources :predictions
resources :weeks
resources :movies
resources :messages
# resources :sites
2015-08-01 15:20:49 +00:00
resources :bans
resources :tweets
resources :issues
2015-08-01 15:20:49 +00:00
resources :brackets
get 'about/action'
get 'about/staff'
get 'about/statistics'
get 'refresh', to: "application#refresh"
get 'search', to: "application#search"
get 'news', to: "articles#news_index"
get 'news/archive', to: "articles#news_archive"
get 'news/admin', to: "articles#admin"
get 'articles/cleanup'
get 'data_files/admin'
get 'data_files/addFile'
get 'data_files/delFile'
get 'data_files/trash'
get 'contesters/recalc'
get 'directories', to: "directories#show", id: 1
get 'gathers/refresh'
get 'gathers/latest/:game', to: "gathers#latest", via: :get
get 'gather', to: "gathers#latest", game: "ns2", via: :get
get 'gatherers/:id/status', to: "gatherers#status", via: :post
get 'groups/addUser'
get 'groups/delUser'
2015-06-15 22:16:44 +00:00
get 'movies/download'
get 'movies/preview'
get 'movies/snapshot'
get 'plugin/user'
get 'users/forgot'
get 'users/recover'
get 'users/agenda'
post 'users/logout'
post 'users/login'
get 'users/agenda'
get 'users/login'
get 'users/logout'
get 'users/popup'
get 'users/forgot', to: "users#forgot"
2017-11-09 17:25:52 +00:00
get 'votes/create'
2017-11-09 17:25:52 +00:00
get ':controller/:action', requirements: { action: /A-Za-z/ }
get ':controller/:action/:id'
get ':controller/:action/:id.:format'
get ':controller/:action/:id/:id2'
get 'teamers/replace', to: 'teamers#replace', as: 'teamers_replace'
end