add health route

This commit is contained in:
2023-04-03 04:47:53 +03:00
parent 573261911d
commit d4ea5b55b9
5 changed files with 15 additions and 2 deletions

9
src/routes/health.rs Normal file
View File

@ -0,0 +1,9 @@
use axum::{response::IntoResponse, Json};
use serde_json::json;
pub async fn health_route() -> impl IntoResponse {
Json(json!({
"ready": true,
"reason": "Everything is OK"
}))
}

View File

@ -1 +1,2 @@
pub mod health;
pub mod liquid;