add stop-word and synonym endpoints

This commit is contained in:
Quentin de Quelen
2020-04-10 18:39:52 +02:00
committed by qdequele
parent 85833e3a0a
commit 22fbff98d4
4 changed files with 109 additions and 82 deletions

View File

@ -89,6 +89,12 @@ async fn main() -> Result<(), MainError> {
.service(routes::setting::delete_displayed)
.service(routes::setting::get_accept_new_fields)
.service(routes::setting::update_accept_new_fields)
.service(routes::stop_words::get)
.service(routes::stop_words::update)
.service(routes::stop_words::delete)
.service(routes::synonym::get)
.service(routes::synonym::update)
.service(routes::synonym::delete)
.service(routes::key::list)
.service(routes::stats::index_stats)
.service(routes::stats::get_stats)