aboutsummaryrefslogtreecommitdiff
path: root/planetwars-server/src/lib.rs
diff options
context:
space:
mode:
authorIlion Beyst <ilion.beyst@gmail.com>2021-12-30 23:41:47 +0100
committerIlion Beyst <ilion.beyst@gmail.com>2021-12-30 23:41:47 +0100
commit0f27ca80fbdb3366e047def628123d3cc8ca051c (patch)
tree8363206692757f92e4ce3be766da55be807e0831 /planetwars-server/src/lib.rs
parentf5e8b4093a1527967423a3af70f2b95d4b05008f (diff)
downloadplanetwars.dev-0f27ca80fbdb3366e047def628123d3cc8ca051c.tar.xz
planetwars.dev-0f27ca80fbdb3366e047def628123d3cc8ca051c.zip
prototype code upload
Diffstat (limited to 'planetwars-server/src/lib.rs')
-rw-r--r--planetwars-server/src/lib.rs5
1 files changed, 4 insertions, 1 deletions
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
}