Change the indexes stats HTTP route; fix
@@ -89,6 +89,9 @@ pub fn load_routes(app: &mut tide::App<Data>) {
})
.get(setting::get)
.post(setting::update);
+
+
+ router.at("/stats").get(stats::index_stat);
});
});
@@ -110,7 +113,6 @@ pub fn load_routes(app: &mut tide::App<Data>) {
.put(health::change_healthyness);
router.at("/stats").get(stats::get_stats);
- router.at("/stats/:index").get(stats::index_stat);
router.at("/version").get(stats::get_version);
router.at("/sys-info").get(stats::get_sys_info);
router
