small fix
This commit is contained in:
@@ -102,7 +102,10 @@ curl http://127.0.0.1:3000/health
|
|||||||
|
|
||||||
```json
|
```json
|
||||||
{
|
{
|
||||||
"status": "ok"
|
"message": "health check successful",
|
||||||
|
"data": {},
|
||||||
|
"success": true,
|
||||||
|
"error": false
|
||||||
}
|
}
|
||||||
```
|
```
|
||||||
|
|
||||||
|
|||||||
@@ -6,5 +6,15 @@ use axum::response::IntoResponse;
|
|||||||
use serde_json::json;
|
use serde_json::json;
|
||||||
|
|
||||||
pub async fn health() -> impl IntoResponse {
|
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,
|
||||||
|
}
|
||||||
|
)),
|
||||||
|
)
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user