From 69331eb08a6199bfa8378e08cf378803b076eaae Mon Sep 17 00:00:00 2001 From: Ilion Beyst Date: Sun, 2 Jan 2022 17:56:52 +0100 Subject: serve match logs --- planetwars-server/src/lib.rs | 1 + 1 file changed, 1 insertion(+) (limited to 'planetwars-server/src/lib.rs') 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 } -- cgit v1.2.3