feat: ship blog platform admin and deploy stack
This commit is contained in:
13
backend/src/controllers/health.rs
Normal file
13
backend/src/controllers/health.rs
Normal file
@@ -0,0 +1,13 @@
|
||||
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))
|
||||
}
|
||||
Reference in New Issue
Block a user