From b044608b25b9d35cd1ca1f1b4be98168cb84bc2b Mon Sep 17 00:00:00 2001 From: marin postma Date: Thu, 24 Jun 2021 15:08:45 +0200 Subject: [PATCH] update health route --- meilisearch-http/src/routes/health.rs | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) diff --git a/meilisearch-http/src/routes/health.rs b/meilisearch-http/src/routes/health.rs index 8994df722..172298861 100644 --- a/meilisearch-http/src/routes/health.rs +++ b/meilisearch-http/src/routes/health.rs @@ -1,13 +1,11 @@ -use actix_web::get; use actix_web::{web, HttpResponse}; use crate::error::ResponseError; pub fn services(cfg: &mut web::ServiceConfig) { - cfg.service(get_health); + cfg.route("/healts", web::get().to(get_health)); } -#[get("/health")] async fn get_health() -> Result { Ok(HttpResponse::Ok().json(serde_json::json!({ "status": "available" }))) }