aboutsummaryrefslogtreecommitdiff
path: root/planetwars-server/src/lib.rs
diff options
context:
space:
mode:
authorIlion Beyst <ilion.beyst@gmail.com>2022-10-11 22:58:42 +0200
committerIlion Beyst <ilion.beyst@gmail.com>2022-10-11 22:58:42 +0200
commit19b9a6ea1b8a36ae2301ffbc95cf2f54bf7fa77f (patch)
tree95809a4813381520abdcdedfeb5caf61c975482f /planetwars-server/src/lib.rs
parent8651f1d8f196a61aff1b4eef0b475649b2c58444 (diff)
downloadplanetwars.dev-19b9a6ea1b8a36ae2301ffbc95cf2f54bf7fa77f.tar.xz
planetwars.dev-19b9a6ea1b8a36ae2301ffbc95cf2f54bf7fa77f.zip
add new bot stats 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 62bf198..1696f1a 100644
--- a/planetwars-server/src/lib.rs
+++ b/planetwars-server/src/lib.rs
@@ -125,6 +125,7 @@ fn api() -> Router {
get(routes::bots::list_bots).post(routes::bots::create_bot),
)
.route("/bots/:bot_name", get(routes::bots::get_bot))
+ .route("/bots/:bot_name/stats", get(routes::bots::get_bot_stats))
.route(
"/bots/:bot_name/upload",
post(routes::bots::upload_code_multipart),