From 9e3b82fbdedc94f98b54223d892bf143540124d8 Mon Sep 17 00:00:00 2001 From: Martin Brodbeck Date: Tue, 26 Sep 2023 10:42:24 +0200 Subject: [PATCH] return value changed to String --- src/main.rs | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/main.rs b/src/main.rs index 83a049f..d6416d0 100644 --- a/src/main.rs +++ b/src/main.rs @@ -63,6 +63,6 @@ async fn update_progress() {} async fn get_progress() {} -async fn healthcheck() -> (StatusCode, Json) { - (StatusCode::OK, Json(json!({ "state" : "OK" }))) +async fn healthcheck() -> (StatusCode, String) { + (StatusCode::OK, "state = 'OK'".to_owned()) }