1 2 3 4 5 6 7 8 9
use axum::response::{IntoResponse, Json, Response}; pub async fn health_check_handler() -> Response { Json(serde_json::json!({ "status": "ok", "version": env!("CARGO_PKG_VERSION") })) .into_response() }