From 85dcf3ba2fd0cf907610625399db691b274118bb Mon Sep 17 00:00:00 2001 From: Ilion Beyst Date: Sun, 2 Jan 2022 16:14:03 +0100 Subject: store matches in database --- planetwars-server/src/lib.rs | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) (limited to 'planetwars-server/src/lib.rs') 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 } -- cgit v1.2.3