aboutsummaryrefslogtreecommitdiff
path: root/planetwars-server/src/lib.rs
diff options
context:
space:
mode:
authorIlion Beyst <ilion.beyst@gmail.com>2022-01-26 20:54:19 +0100
committerIlion Beyst <ilion.beyst@gmail.com>2022-01-26 20:54:19 +0100
commit294c75823d323057e07d6791b9b8ffb6d139b03f (patch)
treec767238a0079a2e515b65c59d14c213ecc3c491b /planetwars-server/src/lib.rs
parenta79b338e90db1948f6587ab02e149e73bb1842f0 (diff)
downloadplanetwars.dev-294c75823d323057e07d6791b9b8ffb6d139b03f.tar.xz
planetwars.dev-294c75823d323057e07d6791b9b8ffb6d139b03f.zip
add endpoint for standalone upload of 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 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
}