aboutsummaryrefslogtreecommitdiff
path: root/planetwars-server/src/lib.rs
diff options
context:
space:
mode:
authorIlion Beyst <ilion.beyst@gmail.com>2022-08-02 20:12:34 +0200
committerIlion Beyst <ilion.beyst@gmail.com>2022-08-02 20:12:34 +0200
commit3c2f4977e478dc7c6b243cab540ac2de4d0e6c84 (patch)
tree40a568397c2ade3d04e0aaa703ef5974b6087055 /planetwars-server/src/lib.rs
parentaafb7856455313844a13a75c5171a649f6573feb (diff)
downloadplanetwars.dev-3c2f4977e478dc7c6b243cab540ac2de4d0e6c84.tar.xz
planetwars.dev-3c2f4977e478dc7c6b243cab540ac2de4d0e6c84.zip
add parameters to recent_matches api endpoint
Diffstat (limited to 'planetwars-server/src/lib.rs')
-rw-r--r--planetwars-server/src/lib.rs2
1 files changed, 1 insertions, 1 deletions
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",