Function health
Source pub async fn health() -> Json<HealthResponse>
Expand description
Health check endpoint handler.
This endpoint returns a JSON response with the status of the server.
§Returns
A JSON response with the status of the server.
§Example
use axum::Json;
let response = health().await;
assert_eq!(response.status, "ok");