mirror of
https://github.com/meilisearch/MeiliSearch
synced 2025-07-04 12:27:13 +02:00
Rewrite the synonym endpoint
This commit is contained in:
parent
cc10804607
commit
a4f26e8e48
7 changed files with 38 additions and 422 deletions
|
@ -60,21 +60,9 @@ pub fn load_routes(app: &mut tide::App<Data>) {
|
|||
.post(document::delete_multiple_documents);
|
||||
});
|
||||
|
||||
router.at("/synonyms").nest(|router| {
|
||||
router
|
||||
.at("/")
|
||||
.get(synonym::list)
|
||||
.post(synonym::create)
|
||||
.delete(synonym::clear);
|
||||
|
||||
router
|
||||
.at("/:synonym")
|
||||
.get(synonym::get)
|
||||
.put(synonym::update)
|
||||
.delete(synonym::delete);
|
||||
|
||||
router.at("/batch").post(synonym::batch_write);
|
||||
});
|
||||
router.at("/synonyms")
|
||||
.get(synonym::get)
|
||||
.post(synonym::update);
|
||||
|
||||
router.at("/stop-words").nest(|router| {
|
||||
router
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue