update settings routes

This commit is contained in:
qdequele 2020-01-28 16:27:21 +01:00
parent bbf9f41a04
commit 5c49f08bb2
No known key found for this signature in database
GPG key ID: B3F0A000EBF11745
3 changed files with 53 additions and 97 deletions

View file

@ -137,9 +137,10 @@ pub fn load_routes(app: &mut tide::Server<Data>) {
.delete(|ctx| into_response(setting::delete_displayed(ctx)));
});
router.at("/index-new-fields")
.get(|ctx| into_response(setting::get_index_new_fields(ctx)))
.post(|ctx| into_response(setting::update_index_new_fields(ctx)));
router
.at("/index-new-fields")
.get(|ctx| into_response(setting::get_index_new_fields(ctx)))
.post(|ctx| into_response(setting::update_index_new_fields(ctx)));
router
.at("/synonyms")