use loco_rs::prelude::*;

#[debug_handler]
pub async fn healthz() -> Result<Response> {
    format::json(serde_json::json!({
        "ok": true,
        "service": "backend",
    }))
}

pub fn routes() -> Routes {
    Routes::new().add("/healthz", get(healthz))
}
