diff options
author | Ilion Beyst <ilion.beyst@gmail.com> | 2022-02-12 23:52:45 +0100 |
---|---|---|
committer | Ilion Beyst <ilion.beyst@gmail.com> | 2022-02-12 23:52:45 +0100 |
commit | c7f4da07c1bb3b8a52a596e7c2573c7bf3ce7b79 (patch) | |
tree | da43f0d3f443446ceb59e661a7f981f9a3c05cd6 /planetwars-server/src/lib.rs | |
parent | 7d743bdbbbf3112fa36c146b6c07a5b09d1388f8 (diff) | |
download | planetwars.dev-c7f4da07c1bb3b8a52a596e7c2573c7bf3ce7b79.tar.xz planetwars.dev-c7f4da07c1bb3b8a52a596e7c2573c7bf3ce7b79.zip |
separate match data api from match log api
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 ccd5a02..94f2965 100644 --- a/planetwars-server/src/lib.rs +++ b/planetwars-server/src/lib.rs @@ -53,7 +53,11 @@ pub async fn api() -> Router { "/matches", get(routes::matches::list_matches).post(routes::matches::play_match), ) - .route("/matches/:match_id", get(routes::matches::get_match_log)) + .route("/matches/:match_id", get(routes::matches::get_match_data)) + .route( + "/matches/:match_id/log", + get(routes::matches::get_match_log), + ) .route("/submit_bot", post(routes::demo::submit_bot)) .layer(AddExtensionLayer::new(pool)); api |