relay/src/routes/healthz.rs
2023-01-29 13:21:36 -06:00

8 lines
235 B
Rust

use crate::{data::State, error::Error};
use actix_web::{web, HttpResponse};
pub(crate) async fn route(state: web::Data<State>) -> Result<HttpResponse, Error> {
state.db.check_health().await?;
Ok(HttpResponse::Ok().finish())
}