diff --git a/server/controllers/UserController.js b/server/controllers/UserController.js index 27b01b3a..78ced4e9 100644 --- a/server/controllers/UserController.js +++ b/server/controllers/UserController.js @@ -12,7 +12,9 @@ class UserController { if (!req.user.isAdminOrUp) return res.sendStatus(403) const hideRootToken = !req.user.isRoot const users = this.db.users.map(u => this.userJsonWithItemProgressDetails(u, hideRootToken)) - res.json(users) + res.json({ + users: users + }) } findOne(req, res) {