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