diff --git a/README.md b/README.md index c2a758e..a32e4ea 100644 --- a/README.md +++ b/README.md @@ -102,7 +102,10 @@ curl http://127.0.0.1:3000/health ```json { - "status": "ok" + "message": "health check successful", + "data": {}, + "success": true, + "error": false } ``` diff --git a/src/handlers/health/health.rs b/src/handlers/health/health.rs index dc8f051..156c801 100644 --- a/src/handlers/health/health.rs +++ b/src/handlers/health/health.rs @@ -6,5 +6,15 @@ use axum::response::IntoResponse; use serde_json::json; pub async fn health() -> impl IntoResponse { - (StatusCode::OK, Json(json!({ "status": "ok" }))) + ( + StatusCode::OK, + Json(json!( + { + "message": "health check successful", + "data": {}, + "success": true, + "error": false, + } + )), + ) }