DEVELOPMENT ENVIRONMENT

~liljamo/deck-builder

1fd26a9297944193a5b5ab4a643c92acd348a2a2 — Jonni Liljamo 1 year, 10 months ago ab41609
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();