diff options
author | Ilion Beyst <ilion.beyst@gmail.com> | 2022-01-27 19:22:48 +0100 |
---|---|---|
committer | Ilion Beyst <ilion.beyst@gmail.com> | 2022-01-27 19:22:48 +0100 |
commit | bfbcc173f88c67bc8e6b3a8079204739f72e7ebc (patch) | |
tree | 826b5120970e994985ef25612d057b46950758de /planetwars-server/src/lib.rs | |
parent | 4a7229b175abfe782696d29cfe664e092c3d970e (diff) | |
download | planetwars.dev-bfbcc173f88c67bc8e6b3a8079204739f72e7ebc.tar.xz planetwars.dev-bfbcc173f88c67bc8e6b3a8079204739f72e7ebc.zip |
allow retrieving match log for submitted bot
Diffstat (limited to 'planetwars-server/src/lib.rs')
-rw-r--r-- | planetwars-server/src/lib.rs | 6 |
1 files changed, 5 insertions, 1 deletions
diff --git a/planetwars-server/src/lib.rs b/planetwars-server/src/lib.rs index ea03fc3..90e0b44 100644 --- a/planetwars-server/src/lib.rs +++ b/planetwars-server/src/lib.rs @@ -54,7 +54,11 @@ 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)) + .route("/submit_bot", post(routes::demo::submit_bot)) + .route( + "/submission_match_log/:match_id", + get(routes::demo::get_submission_match_log), + ) .layer(AddExtensionLayer::new(pool)); api } |