From dc81a3cf6e42ab7475d160bca5a78fc8fdf3cc47 Mon Sep 17 00:00:00 2001 From: Alex Janka Date: Sat, 6 Jan 2024 09:33:51 +1100 Subject: [PATCH] flash is post request --- client/src/main.rs | 2 +- server/src/server/mod.rs | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) 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; }