From 294c75823d323057e07d6791b9b8ffb6d139b03f Mon Sep 17 00:00:00 2001 From: Ilion Beyst Date: Wed, 26 Jan 2022 20:54:19 +0100 Subject: add endpoint for standalone upload of 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 b5a204e..ea03fc3 100644 --- a/planetwars-server/src/lib.rs +++ b/planetwars-server/src/lib.rs @@ -54,6 +54,7 @@ pub async fn api() -> Router { get(routes::matches::list_matches).post(routes::matches::play_match), ) .route("/matches/:match_id", get(routes::matches::get_match_log)) + .route("/submit-bot", post(routes::demo::submit_bot)) .layer(AddExtensionLayer::new(pool)); api } -- cgit v1.2.3