mirror of
https://github.com/meilisearch/meilisearch.git
synced 2024-11-23 18:45:06 +08:00
Change the indexes stats HTTP route; fix #423
This commit is contained in:
parent
aa7a6d5f8c
commit
c536ea64c3
@ -77,18 +77,21 @@ pub fn load_routes(app: &mut tide::App<Data>) {
|
|||||||
});
|
});
|
||||||
|
|
||||||
router.at("/settings").nest(|router| {
|
router.at("/settings").nest(|router| {
|
||||||
router.at("/synonyms")
|
router.at("/synonyms")
|
||||||
.get(synonym::get)
|
.get(synonym::get)
|
||||||
.post(synonym::update)
|
.post(synonym::update)
|
||||||
.delete(synonym::delete);
|
.delete(synonym::delete);
|
||||||
|
|
||||||
router.at("/stop-words")
|
router.at("/stop-words")
|
||||||
.get(stop_words::get)
|
.get(stop_words::get)
|
||||||
.post(stop_words::update)
|
.post(stop_words::update)
|
||||||
.delete(stop_words::delete);
|
.delete(stop_words::delete);
|
||||||
})
|
})
|
||||||
.get(setting::get)
|
.get(setting::get)
|
||||||
.post(setting::update);
|
.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);
|
.put(health::change_healthyness);
|
||||||
|
|
||||||
router.at("/stats").get(stats::get_stats);
|
router.at("/stats").get(stats::get_stats);
|
||||||
router.at("/stats/:index").get(stats::index_stat);
|
|
||||||
router.at("/version").get(stats::get_version);
|
router.at("/version").get(stats::get_version);
|
||||||
router.at("/sys-info").get(stats::get_sys_info);
|
router.at("/sys-info").get(stats::get_sys_info);
|
||||||
router
|
router
|
||||||
|
Loading…
Reference in New Issue
Block a user