From 0f27ca80fbdb3366e047def628123d3cc8ca051c Mon Sep 17 00:00:00 2001 From: Ilion Beyst Date: Thu, 30 Dec 2021 23:41:47 +0100 Subject: prototype code upload --- planetwars-server/src/lib.rs | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) (limited to 'planetwars-server/src/lib.rs') diff --git a/planetwars-server/src/lib.rs b/planetwars-server/src/lib.rs index b3aac5f..46c1100 100644 --- a/planetwars-server/src/lib.rs +++ b/planetwars-server/src/lib.rs @@ -36,7 +36,10 @@ pub async fn api() -> Router { .route("/bots", post(routes::bots::create_bot)) .route("/bots/my_bots", get(routes::bots::get_my_bots)) .route("/bots/:bot_id", get(routes::bots::get_bot)) - .route("/bots/:bot_id/upload", post(routes::bots::upload_bot_code)) + .route( + "/bots/:bot_id/upload", + post(routes::bots::upload_code_multipart), + ) .layer(AddExtensionLayer::new(pool)); api } -- cgit v1.2.3