feat: Lock button while fetching

This commit is contained in:
Ahmet Kaan GÜMÜŞ 2024-03-10 02:25:06 +03:00
parent ffa21ae8df
commit 2755034013
3 changed files with 43 additions and 29 deletions

View file

@ -16,7 +16,7 @@ async fn alive() -> impl IntoResponse {
let alive_json = serde_json::json!({
"status":"Alive",
});
println!("Alive");
println!("{}", alive_json);
(StatusCode::OK, Json(alive_json))
}
@ -30,6 +30,6 @@ async fn flip_coin() -> impl IntoResponse {
let coin_json = serde_json::json!({
"status":flip_status,
});
println!("Coin Flip");
println!("{}", coin_json);
(StatusCode::OK, Json(coin_json))
}