mirror of
https://github.com/cupcakearmy/cryptgeon.git
synced 2026-09-26 20:41:45 +00:00
10 lines
234 B
Rust
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,);
|
|
}
|
|
} |