MeiliSearch/meilisearch-http/src/routes/health.rs

14 lines
297 B
Rust
Raw Normal View History

use actix_web::get;
use actix_web::{web, HttpResponse};
2019-10-31 15:00:36 +01:00
use crate::error::ResponseError;
pub fn services(cfg: &mut web::ServiceConfig) {
cfg.service(get_health);
}
#[get("/health")]
async fn get_health() -> Result<HttpResponse, ResponseError> {
Ok(HttpResponse::NoContent().finish())
2019-10-31 15:00:36 +01:00
}