fix!(sdbclient): creategame api enpoint get>post
1 files changed, 2 insertions(+), 1 deletions(-) M sdbclient/src/api/game/mod.rs
M sdbclient/src/api/game/mod.rs => sdbclient/src/api/game/mod.rs +2 -1
@@ 17,6 17,7 @@ pub struct ResultCreateGame { } #[derive(Debug, Serialize, Deserialize)] #[serde(untagged)] pub enum ResponseCreateGame { Error(APIErrorWrapper), @@ Valid(ResultCreateGame), 26,7 27,7 @@ pub fn creategame(api_address: String, token: String) -> ResponseCreateGame { let client = reqwest::blocking::Client::new(); let resp = client .get(&format!("{}/game/create", api_address)) .post(&format!("{}/game/create", api_address)) .header("Authorization", token) .send() .unwrap();