aboutsummaryrefslogtreecommitdiff
path: root/planetwars-server/src/lib.rs
diff options
context:
space:
mode:
authorIlion Beyst <ilion.beyst@gmail.com>2022-05-17 21:13:29 +0200
committerIlion Beyst <ilion.beyst@gmail.com>2022-05-17 21:13:29 +0200
commit30de8107b499741808150db61abecd623bf1581b (patch)
tree8184324e170dc50cbaf1003588fa1df136454c1d /planetwars-server/src/lib.rs
parenta7d56ba0f54273920743109fe1a6541030f3c003 (diff)
downloadplanetwars.dev-30de8107b499741808150db61abecd623bf1581b.tar.xz
planetwars.dev-30de8107b499741808150db61abecd623bf1581b.zip
implement leaderboard endpoint
Diffstat (limited to 'planetwars-server/src/lib.rs')
-rw-r--r--planetwars-server/src/lib.rs1
1 files changed, 1 insertions, 0 deletions
diff --git a/planetwars-server/src/lib.rs b/planetwars-server/src/lib.rs
index 3f6caa9..28d7a76 100644
--- a/planetwars-server/src/lib.rs
+++ b/planetwars-server/src/lib.rs
@@ -91,6 +91,7 @@ pub fn api() -> Router {
"/matches/:match_id/log",
get(routes::matches::get_match_log),
)
+ .route("/leaderboard", get(routes::bots::get_ranking))
.route("/submit_bot", post(routes::demo::submit_bot))
.route("/save_bot", post(routes::bots::save_bot))
}