diff options
author | Ilion Beyst <ilion.beyst@gmail.com> | 2022-05-17 21:13:29 +0200 |
---|---|---|
committer | Ilion Beyst <ilion.beyst@gmail.com> | 2022-05-17 21:13:29 +0200 |
commit | 30de8107b499741808150db61abecd623bf1581b (patch) | |
tree | 8184324e170dc50cbaf1003588fa1df136454c1d /planetwars-server/src/lib.rs | |
parent | a7d56ba0f54273920743109fe1a6541030f3c003 (diff) | |
download | planetwars.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.rs | 1 |
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)) } |