mirror of
https://github.com/meilisearch/meilisearch.git
synced 2024-11-29 16:45:30 +08:00
Merge pull request #382 from curquiza/health-routes
Keep only useful routes for /health
This commit is contained in:
commit
7a548467b9
@ -102,14 +102,11 @@ pub fn load_routes(app: &mut tide::App<Data>) {
|
|||||||
});
|
});
|
||||||
});
|
});
|
||||||
|
|
||||||
// Private
|
|
||||||
app.at("").nest(|router| {
|
app.at("").nest(|router| {
|
||||||
router
|
router
|
||||||
.at("/health")
|
.at("/health")
|
||||||
.get(health::get_health)
|
.get(health::get_health)
|
||||||
.post(health::set_healthy)
|
.put(health::change_healthyness);
|
||||||
.put(health::change_healthyness)
|
|
||||||
.delete(health::set_unhealthy);
|
|
||||||
|
|
||||||
router.at("/stats").get(stats::get_stats);
|
router.at("/stats").get(stats::get_stats);
|
||||||
router.at("/stats/:index").get(stats::index_stat);
|
router.at("/stats/:index").get(stats::index_stat);
|
||||||
|
Loading…
Reference in New Issue
Block a user