Decider admin

This commit is contained in:
anibus
2026-10-24 22:02:29 +03:00
parent 3cad3aec4b
commit 0212f8b6d0
18 changed files with 1362 additions and 71 deletions
+17 -10
View File
@@ -7,6 +7,13 @@ play.filters.hosts {
play.http.secret.key="QCY?tAnfk?aZ?iwrNwnxIlR6CTf:123123Latabg@5241AB`R5W:1uDFN];Ik@n"
play.server.http.port = 1337
admin {
steamApiKey = ""
steamRedirectUrl = "http://localhost:1337/decider/admin/steam/callback"
allowedSteamIds = []
decidersFile = "conf/deciders.conf"
}
deciders{
classic{
maps = [["2p_battle_marshes"],
@@ -42,19 +49,19 @@ deciders{
}
montanaz0r{
maps = [["2p_battle_marshes"],
["2p_blood_river"],
["2p_fallen_city"],
["2p_fata_morgana"],
["2p_quests_triumph"],
["2p_meeting_of_minds"],
["2p_shrine_of_excellion"],
["2p_titan_fall"],
["2p_tranquilitys_end"],
["2p_emerald_river"],
["2p_shrine_of_excellion"],
["2p_quests_triumph"],
["2p_outer_reaches"],
["2p_blood_river"]]
name = "VOX of War tournament"
raceCount = 1
rules = """There are 11 maps in total, and each player will ban 3 maps. This means that at the end of the draft, 5 maps will remain."""
["2p_fata_morgana"],
["2p_titan_fall"],
["2p_meeting_of_minds"],
["2p_deadly_fun_archeology"]]
name = "-"
raceCount = 2
rules = """There are 11 maps in total. The veto process varies depending on the round: cross-pick continues until 1 map remains for Bo1, 3 maps remain for Bo3, or 5 maps remain for Bo5."""
}
mistrzostwa{
maps = [["2p_battle_marshes"],
+17 -4
View File
@@ -2,11 +2,24 @@
# This file defines all application routes (Higher priority routes first)
# ~~~~
GET /decider/:name controllers.HomeController.index(name)
GET /ws controllers.HomeController.ws
GET /ws controllers.HomeController.ws
# Admin panel
# ВАЖНО: админские маршруты должны идти ДО /decider/:name,
# иначе /decider/admin перехватывается как десайдер с именем "admin".
GET /decider/admin controllers.AdminController.index()
GET /decider/admin/login controllers.AdminController.login()
GET /decider/admin/steam/callback controllers.AdminController.steamCallback()
GET /admin/users controllers.AdminController.viewAllUsers()
# Admin API
GET /decider/admin/maps controllers.AdminController.mapImages()
POST /decider/admin/maps controllers.AdminController.mapImageUpload()
GET /decider/admin/deciders controllers.AdminController.decidersList()
GET /decider/admin/deciders/:key controllers.AdminController.deciderGet(key)
POST /decider/admin/deciders controllers.AdminController.deciderSave()
DELETE /decider/admin/deciders/:key controllers.AdminController.deciderDelete(key)
GET /decider/:name controllers.HomeController.index(name)
# Map static resources from the /public folder to the /assets URL path
GET /assets/*file controllers.Assets.at(path="/public", file)
GET /assets/*file controllers.Assets.at(path="/public", file)