Files
cryptgeon/packages/backend/src/health/mod.rs
T
2026-07-12 11:36:01 +02:00

10 lines
234 B
Rust

use crate::store;
use axum::http::StatusCode;
pub async fn report_health() -> (StatusCode,) {
if store::can_reach_cache() {
return (StatusCode::OK,);
} else {
return (StatusCode::SERVICE_UNAVAILABLE,);
}
}