planetwars.dev/planetwars-server/src/routes/matches.rs

13 lines
273 B
Rust
Raw Normal View History

2022-01-01 10:26:49 +00:00
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);
}