mirror of
https://github.com/meilisearch/MeiliSearch
synced 2025-07-04 12:27:13 +02:00
Rewrite the stop-words endpoint; fix #417
This commit is contained in:
parent
f0590d3301
commit
91c6539baf
6 changed files with 135 additions and 184 deletions
|
@ -80,16 +80,12 @@ pub fn load_routes(app: &mut tide::App<Data>) {
|
|||
.get(synonym::get)
|
||||
.post(synonym::update);
|
||||
|
||||
router.at("/stop-words").nest(|router| {
|
||||
router
|
||||
.at("/")
|
||||
.get(stop_words::list)
|
||||
.patch(stop_words::add)
|
||||
.post(stop_words::delete);
|
||||
});
|
||||
|
||||
router
|
||||
.at("/settings")
|
||||
router.at("/settings").nest(|router| {
|
||||
router.at("/stop-words")
|
||||
.get(stop_words::get)
|
||||
.post(stop_words::update)
|
||||
.delete(stop_words::delete);
|
||||
})
|
||||
.get(setting::get)
|
||||
.post(setting::update);
|
||||
});
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue