From 3058028edc7ab794e496e12075fa79a4133cd42c Mon Sep 17 00:00:00 2001 From: Ilion Beyst Date: Sat, 10 Sep 2022 18:56:03 +0200 Subject: allow retrieving bot code --- planetwars-server/src/lib.rs | 1 + 1 file changed, 1 insertion(+) (limited to 'planetwars-server/src/lib.rs') 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( -- cgit v1.2.3