refactor: remove /users/{uid}/settings/{setting} route

@baris Also, I am now allowing the following properties to be saved in User.saveSettings:
- categoryTopicSort
- topicPostSort
- setCategorySort
- setTopicSort
This commit is contained in:
Julian Lam
2020-10-28 17:13:58 -04:00
parent e0b6781776
commit aa8faf58a0
7 changed files with 7 additions and 55 deletions

View File

@@ -33,11 +33,6 @@ Users.updateSettings = async (req, res) => {
helpers.formatApiResponse(200, res, settings);
};
Users.updateSetting = async (req, res) => {
await api.users.updateSetting(req, { ...req.params, value: req.body.value });
helpers.formatApiResponse(200, res);
};
Users.changePassword = async (req, res) => {
await api.users.changePassword(req, { ...req.body, uid: req.params.uid });
helpers.formatApiResponse(200, res);