From 3c2f4977e478dc7c6b243cab540ac2de4d0e6c84 Mon Sep 17 00:00:00 2001 From: Ilion Beyst Date: Tue, 2 Aug 2022 20:12:34 +0200 Subject: add parameters to recent_matches api endpoint --- planetwars-server/src/lib.rs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'planetwars-server/src/lib.rs') diff --git a/planetwars-server/src/lib.rs b/planetwars-server/src/lib.rs index 9983dda..804dcd5 100644 --- a/planetwars-server/src/lib.rs +++ b/planetwars-server/src/lib.rs @@ -129,7 +129,7 @@ pub fn api() -> Router { "/bots/:bot_name/upload", post(routes::bots::upload_code_multipart), ) - .route("/matches", get(routes::matches::list_public_matches)) + .route("/matches", get(routes::matches::list_recent_matches)) .route("/matches/:match_id", get(routes::matches::get_match_data)) .route( "/matches/:match_id/log", -- cgit v1.2.3