From e145947d052450618af3ba094e66a27c3c7f86e4 Mon Sep 17 00:00:00 2001 From: Ilion Beyst Date: Sat, 1 Jan 2022 11:26:49 +0100 Subject: match form stubs --- planetwars-server/src/routes/matches.rs | 12 ++++++++++++ 1 file changed, 12 insertions(+) create mode 100644 planetwars-server/src/routes/matches.rs (limited to 'planetwars-server/src/routes/matches.rs') diff --git a/planetwars-server/src/routes/matches.rs b/planetwars-server/src/routes/matches.rs new file mode 100644 index 0000000..7eca6ab --- /dev/null +++ b/planetwars-server/src/routes/matches.rs @@ -0,0 +1,12 @@ +use axum::Json; +use serde::{Deserialize, Serialize}; + +#[derive(Serialize, Deserialize, Debug)] +pub struct MatchParams { + // Just bot ids for now + players: Vec, +} + +pub async fn play_match(params: Json) { + println!("start match: {:#?}", params); +} -- cgit v1.2.3