planetwars.dev/planetwars-server/src/routes/matches.rs
2022-01-01 11:26:49 +01:00

13 lines
273 B
Rust

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);
}