aboutsummaryrefslogtreecommitdiff
path: root/planetwars-server/src/lib.rs
diff options
context:
space:
mode:
authorIlion Beyst <ilion.beyst@gmail.com>2022-09-10 18:56:03 +0200
committerIlion Beyst <ilion.beyst@gmail.com>2022-09-10 18:56:03 +0200
commit3058028edc7ab794e496e12075fa79a4133cd42c (patch)
tree60882f1238f008670df5b01f0ec5e87a10158a61 /planetwars-server/src/lib.rs
parent78a6032b60eea6f39549814c9c38d9078e20284e (diff)
downloadplanetwars.dev-3058028edc7ab794e496e12075fa79a4133cd42c.tar.xz
planetwars.dev-3058028edc7ab794e496e12075fa79a4133cd42c.zip
allow retrieving bot code
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 fa1af8d..6018eee 100644
--- a/planetwars-server/src/lib.rs
+++ b/planetwars-server/src/lib.rs
@@ -127,6 +127,7 @@ pub fn api() -> Router {
"/bots/:bot_name/upload",
post(routes::bots::upload_code_multipart),
)
+ .route("/code/:version_id", get(routes::bots::get_code))
.route("/matches", get(routes::matches::list_recent_matches))
.route("/matches/:match_id", get(routes::matches::get_match_data))
.route(