diff options
author | Ilion Beyst <ilion.beyst@gmail.com> | 2022-07-30 19:49:08 +0200 |
---|---|---|
committer | Ilion Beyst <ilion.beyst@gmail.com> | 2022-07-30 19:49:08 +0200 |
commit | e8dbb019337287040891231701b7e50593c37187 (patch) | |
tree | 13729b8d11389ff9aaa2d356cd0d784ca94517b3 /planetwars-server/src/lib.rs | |
parent | ee5c67c092acc57a6ef2b8f7934ba827df43add6 (diff) | |
download | planetwars.dev-e8dbb019337287040891231701b7e50593c37187.tar.xz planetwars.dev-e8dbb019337287040891231701b7e50593c37187.zip |
list only public matches in API
Diffstat (limited to 'planetwars-server/src/lib.rs')
-rw-r--r-- | planetwars-server/src/lib.rs | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/planetwars-server/src/lib.rs b/planetwars-server/src/lib.rs index e16b232..9983dda 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_matches)) + .route("/matches", get(routes::matches::list_public_matches)) .route("/matches/:match_id", get(routes::matches::get_match_data)) .route( "/matches/:match_id/log", |