add /settings/index-new-fields routes

This commit is contained in:
qdequele 2020-01-27 18:33:40 +01:00
parent 037724576e
commit 6a32432b01
No known key found for this signature in database
GPG key ID: B3F0A000EBF11745
2 changed files with 46 additions and 0 deletions

View file

@ -136,6 +136,9 @@ pub fn load_routes(app: &mut tide::Server<Data>) {
.post(|ctx| into_response(setting::update_displayed(ctx)))
.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("/synonyms")