From 9b46887f759cf82333de56806e4beaa6cbcafd54 Mon Sep 17 00:00:00 2001 From: Rio Kierkels Date: Wed, 1 Jul 2020 15:45:24 +0200 Subject: [PATCH] chore(http): do not require auth on /health endpoint This makes it easier to determine the health of the server using http. closes #822 --- meilisearch-http/src/routes/health.rs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/meilisearch-http/src/routes/health.rs b/meilisearch-http/src/routes/health.rs index 0f0a3a203..4ae684b47 100644 --- a/meilisearch-http/src/routes/health.rs +++ b/meilisearch-http/src/routes/health.rs @@ -10,7 +10,7 @@ pub fn services(cfg: &mut web::ServiceConfig) { cfg.service(get_health).service(change_healthyness); } -#[get("/health", wrap = "Authentication::Private")] +#[get("/health")] async fn get_health(data: web::Data) -> Result { let reader = data.db.main_read_txn()?; if let Ok(Some(_)) = data.db.get_health(&reader) {