use axum::Json;
use serde::Serialize;
#[derive(Serialize)]
pub struct HealthResponse {
pub status: &'static str,
pub service: &'static str,
pub version: &'static str,
}
pub async fn health() -> Json<HealthResponse> {
Json(HealthResponse {
status: "ok",
service: "did-hosting-control",
version: env!("CARGO_PKG_VERSION"),
})
}