DEVELOPMENT ENVIRONMENT

~liljamo/deck-builder

49aee06f187b6b8a812d7878a926c6f55dc8c1fe — Jonni Liljamo 1 year, 10 months ago 36eced0
fix(sdbclient): rename creategame to just create
2 files changed, 2 insertions(+), 2 deletions(-)

M sdbclient/src/api/game/mod.rs
M sdbclient/src/plugins/menu/play/creategamecall.rs
M sdbclient/src/api/game/mod.rs => sdbclient/src/api/game/mod.rs +1 -1
@@ 23,7 23,7 @@ pub enum ResponseCreateGame {
    Valid(ResultCreateGame),
}

pub fn creategame(api_address: String, token: String) -> ResponseCreateGame {
pub fn create(api_address: String, token: String) -> ResponseCreateGame {
    let client = reqwest::blocking::Client::new();

    let resp = client

M sdbclient/src/plugins/menu/play/creategamecall.rs => sdbclient/src/plugins/menu/play/creategamecall.rs +1 -1
@@ 42,7 42,7 @@ pub(super) fn start(

        let thread_pool = AsyncComputeTaskPool::get();
        let task = thread_pool.spawn(async move {
            let create_game_response = api::game::creategame(api_address, token);
            let create_game_response = api::game::create(api_address, token);

            CreateGameCallResponse {
                game: create_game_response,