Merge pull request #382 from curquiza/health-routes

Keep only useful routes for /health
This commit is contained in:
Clément Renault 2019-12-08 18:11:19 +01:00 committed by GitHub
commit 7a548467b9
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 1 additions and 4 deletions

View File

@ -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);