return value changed to String

This commit is contained in:
Martin Brodbeck 2023-09-26 10:42:24 +02:00
parent fed0d3616e
commit 9e3b82fbde

View file

@ -63,6 +63,6 @@ async fn update_progress() {}
async fn get_progress() {}
async fn healthcheck() -> (StatusCode, Json<Value>) {
(StatusCode::OK, Json(json!({ "state" : "OK" })))
async fn healthcheck() -> (StatusCode, String) {
(StatusCode::OK, "state = 'OK'".to_owned())
}