mirror of
https://github.com/cupcakearmy/cryptgeon.git
synced 2025-09-04 00:20:39 +00:00
11 lines
235 B
Rust
11 lines
235 B
Rust
use crate::store;
|
|
use axum::http::StatusCode;
|
|
|
|
pub async fn report_health() -> (StatusCode,) {
|
|
if store::can_reach_redis() {
|
|
return (StatusCode::OK,);
|
|
} else {
|
|
return (StatusCode::SERVICE_UNAVAILABLE,);
|
|
}
|
|
}
|