mirror of
https://github.com/meilisearch/MeiliSearch
synced 2025-07-04 12:27:13 +02:00
Rewrite the synonyms endpoint; fix #418
This commit is contained in:
parent
91c6539baf
commit
aa7a6d5f8c
2 changed files with 28 additions and 4 deletions
|
@ -76,11 +76,12 @@ pub fn load_routes(app: &mut tide::App<Data>) {
|
|||
.post(document::delete_multiple_documents);
|
||||
});
|
||||
|
||||
router.at("/synonyms")
|
||||
.get(synonym::get)
|
||||
.post(synonym::update);
|
||||
|
||||
router.at("/settings").nest(|router| {
|
||||
router.at("/synonyms")
|
||||
.get(synonym::get)
|
||||
.post(synonym::update)
|
||||
.delete(synonym::delete);
|
||||
|
||||
router.at("/stop-words")
|
||||
.get(stop_words::get)
|
||||
.post(stop_words::update)
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue