aboutsummaryrefslogtreecommitdiff
path: root/planetwars-server/src/routes/matches.rs
blob: 7eca6abab93078fe01c93992668de1d5a877116d (plain)
1
2
3
4
5
6
7
8
9
10
11
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);
}