This commit is contained in:
2025-03-11 09:52:32 -07:00
parent 0e380931b1
commit 97d5bd9ace
18 changed files with 294 additions and 61 deletions

View File

@ -24,9 +24,9 @@ Rails.application.routes.draw do
match "discord" => redirect("https://discord.gg/hQShdPMy7p"), via: [ :get ]
# Bot
get "bot/players" => "bot#players"
get "bot/player/:id" => "bot#player_name"
get "bot/summary" => "bot#summary"
get "bot/leaderboard" => "bot#leaderboard"
get "bot/lords" => "bot#lords"
get "bot/weekly" => "bot#weekly"
# Admin
get "admin", to: "admin#index"
@ -35,4 +35,11 @@ Rails.application.routes.draw do
get "admin/login", to: "admin#login"
post "admin/login_submit", to: "admin#login_submit"
get "admin/destroy", to: "admin#destroy"
post "admin/set_lootban", to: "admin#set_lootban"
post "admin/delete_lootban", to: "admin#clear_lootban"
# Loot
resources :loot, only: [ :create ], defaults: { format: :json }
get "loot", to: "loot#index"
get "loot/list", to: "loot#list"
end