From 06d8e00ff35a98e960a23bbc6415d480bb86e07a Mon Sep 17 00:00:00 2001 From: Clementine Urquizar Date: Sun, 8 Dec 2019 17:26:13 +0100 Subject: [PATCH] Keep only useful routes for /health --- meilisearch-http/src/routes/mod.rs | 5 +---- 1 file changed, 1 insertion(+), 4 deletions(-) diff --git a/meilisearch-http/src/routes/mod.rs b/meilisearch-http/src/routes/mod.rs index e4165d83f..744e531fb 100644 --- a/meilisearch-http/src/routes/mod.rs +++ b/meilisearch-http/src/routes/mod.rs @@ -102,14 +102,11 @@ pub fn load_routes(app: &mut tide::App) { }); }); - // Private app.at("").nest(|router| { router .at("/health") .get(health::get_health) - .post(health::set_healthy) - .put(health::change_healthyness) - .delete(health::set_unhealthy); + .put(health::change_healthyness); router.at("/stats").get(stats::get_stats); router.at("/stats/:index").get(stats::index_stat);