mirror of
https://github.com/meilisearch/meilisearch.git
synced 2025-01-18 17:11:15 +08: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("/").get(synonym::list).post(synonym::create);
|
||||
router.at("/").get(synonym::list).post(synonym::create).delete(synonym::clear);
|
||||
|
||||
router
|
||||
.at("/:synonym")
|
||||
@ -69,7 +69,6 @@ pub fn load_routes(app: &mut tide::App<Data>) {
|
||||
.delete(synonym::delete);
|
||||
|
||||
router.at("/batch").post(synonym::batch_write);
|
||||
router.at("/clear").post(synonym::clear);
|
||||
});
|
||||
|
||||
router.at("/stop-words").nest(|router| {
|
||||
|
Loading…
Reference in New Issue
Block a user