diff --git a/client/src/main.rs b/client/src/main.rs index d21894f..47fc24b 100644 --- a/client/src/main.rs +++ b/client/src/main.rs @@ -42,7 +42,7 @@ fn App() -> Html { .collect(); let flash = move |_| { wasm_bindgen_futures::spawn_local(async move { - match reqwasm::http::Request::get(&format!("{API_URL}/flash")) + match reqwasm::http::Request::post(&format!("{API_URL}/flash")) .send() .await { diff --git a/server/src/server/mod.rs b/server/src/server/mod.rs index 4612b7e..f19054c 100644 --- a/server/src/server/mod.rs +++ b/server/src/server/mod.rs @@ -118,7 +118,7 @@ async fn charge_state(state: &State) -> Option) { state.flash().await; }