aboutsummaryrefslogtreecommitdiff
path: root/planetwars-server/src/lib.rs
diff options
context:
space:
mode:
authorIlion Beyst <ilion.beyst@gmail.com>2022-01-02 17:56:52 +0100
committerIlion Beyst <ilion.beyst@gmail.com>2022-01-02 17:56:52 +0100
commit69331eb08a6199bfa8378e08cf378803b076eaae (patch)
tree3a84474e81c2f2d553369e96244e2a62f601509d /planetwars-server/src/lib.rs
parent85dcf3ba2fd0cf907610625399db691b274118bb (diff)
downloadplanetwars.dev-69331eb08a6199bfa8378e08cf378803b076eaae.tar.xz
planetwars.dev-69331eb08a6199bfa8378e08cf378803b076eaae.zip
serve match logs
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 7eaa5a0..754d062 100644
--- a/planetwars-server/src/lib.rs
+++ b/planetwars-server/src/lib.rs
@@ -52,6 +52,7 @@ 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))
.layer(AddExtensionLayer::new(pool));
api
}