aboutsummaryrefslogtreecommitdiff
path: root/planetwars-server/src/routes/matches.rs
diff options
context:
space:
mode:
authorIlion Beyst <ilion.beyst@gmail.com>2022-01-01 11:26:49 +0100
committerIlion Beyst <ilion.beyst@gmail.com>2022-01-01 11:26:49 +0100
commite145947d052450618af3ba094e66a27c3c7f86e4 (patch)
tree5aff15f6ffb98710323b0ebadb58f733e75cbead /planetwars-server/src/routes/matches.rs
parent8d3b8fd8aa9603f5377f1b37963190ac2c01e9dd (diff)
downloadplanetwars.dev-e145947d052450618af3ba094e66a27c3c7f86e4.tar.xz
planetwars.dev-e145947d052450618af3ba094e66a27c3c7f86e4.zip
match form stubs
Diffstat (limited to 'planetwars-server/src/routes/matches.rs')
-rw-r--r--planetwars-server/src/routes/matches.rs12
1 files changed, 12 insertions, 0 deletions
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<i32>,
+}
+
+pub async fn play_match(params: Json<MatchParams>) {
+ println!("start match: {:#?}", params);
+}