diff options
Diffstat (limited to 'planetwars-server/src/lib.rs')
-rw-r--r-- | planetwars-server/src/lib.rs | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/planetwars-server/src/lib.rs b/planetwars-server/src/lib.rs index 1d08580..7eaa5a0 100644 --- a/planetwars-server/src/lib.rs +++ b/planetwars-server/src/lib.rs @@ -48,7 +48,10 @@ pub async fn api() -> Router { "/bots/:bot_id/upload", post(routes::bots::upload_code_multipart), ) - .route("/matches", post(routes::matches::play_match)) + .route( + "/matches", + get(routes::matches::list_matches).post(routes::matches::play_match), + ) .layer(AddExtensionLayer::new(pool)); api } |