14 lines
264 B
Rust
14 lines
264 B
Rust
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))
|
|
}
|