mirror of
https://github.com/NodeBB/NodeBB.git
synced 2026-01-05 23:30:36 +01:00
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:
@@ -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);
|
||||
|
||||
Reference in New Issue
Block a user