mirror of
https://github.com/meilisearch/MeiliSearch
synced 2024-11-26 14:54:27 +01:00
Move route to clear all synonyms on DELETE /synonyms
This commit is contained in:
parent
ca13900699
commit
5f0f699f37
@ -60,7 +60,7 @@ pub fn load_routes(app: &mut tide::App<Data>) {
|
|||||||
});
|
});
|
||||||
|
|
||||||
router.at("/synonym").nest(|router| {
|
router.at("/synonym").nest(|router| {
|
||||||
router.at("/").get(synonym::list).post(synonym::create);
|
router.at("/").get(synonym::list).post(synonym::create).delete(synonym::clear);
|
||||||
|
|
||||||
router
|
router
|
||||||
.at("/:synonym")
|
.at("/:synonym")
|
||||||
@ -69,7 +69,6 @@ pub fn load_routes(app: &mut tide::App<Data>) {
|
|||||||
.delete(synonym::delete);
|
.delete(synonym::delete);
|
||||||
|
|
||||||
router.at("/batch").post(synonym::batch_write);
|
router.at("/batch").post(synonym::batch_write);
|
||||||
router.at("/clear").post(synonym::clear);
|
|
||||||
});
|
});
|
||||||
|
|
||||||
router.at("/stop-words").nest(|router| {
|
router.at("/stop-words").nest(|router| {
|
||||||
|
Loading…
Reference in New Issue
Block a user