default values of synonyms and stop-words; fix #499 fix #504

This commit is contained in:
qdequele 2020-03-05 14:17:15 +01:00 committed by Quentin de Quelen
parent c5b6e641a4
commit d56968cb23
3 changed files with 44 additions and 17 deletions

View file

@ -105,7 +105,7 @@ pub fn load_routes(app: &mut tide::Server<Data>) {
.post(|ctx| into_response(synonym::update(ctx)))
.delete(|ctx| into_response(synonym::delete(ctx)));
app.at("/indexes/:index/settings/stop_words")
app.at("/indexes/:index/settings/stop-words")
.get(|ctx| into_response(stop_words::get(ctx)))
.post(|ctx| into_response(stop_words::update(ctx)))
.delete(|ctx| into_response(stop_words::delete(ctx)));