mirror of
https://github.com/NodeBB/NodeBB.git
synced 2026-05-07 03:27:01 +02:00
feat: added GET user route for api v3
This commit is contained in:
@@ -43,6 +43,10 @@ Users.exists = async (req, res) => {
|
||||
helpers.formatApiResponse(200, res);
|
||||
};
|
||||
|
||||
Users.get = async (req, res) => {
|
||||
helpers.formatApiResponse(200, res, await user.getUserData(req.params.uid));
|
||||
};
|
||||
|
||||
Users.update = async (req, res) => {
|
||||
const userObj = await api.users.update(req, { ...req.body, uid: req.params.uid });
|
||||
helpers.formatApiResponse(200, res, userObj);
|
||||
|
||||
Reference in New Issue
Block a user