mirror of
https://github.com/meilisearch/MeiliSearch
synced 2024-12-22 20:50:04 +01:00
Keep only useful routes for /health
This commit is contained in:
parent
225f5a172d
commit
06d8e00ff3
@ -102,14 +102,11 @@ pub fn load_routes(app: &mut tide::App<Data>) {
|
||||
});
|
||||
});
|
||||
|
||||
// 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);
|
||||
|
Loading…
x
Reference in New Issue
Block a user