Initial commit

This commit is contained in:
Lorenzo Sanesi
2026-03-26 22:46:03 +01:00
commit 18e0e04700
80 changed files with 13114 additions and 0 deletions
@@ -0,0 +1,18 @@
const ResponseHandler = require('../shared/response.handler');
class UsersController {
constructor({ usersService }) {
this.usersService = usersService;
}
async updateCurrentUser(req, res, next) {
try {
const user = await this.usersService.updateUserProfile(req.userId, req.body);
return ResponseHandler.success(res, user, 'User profile updated successfully');
} catch (error) {
next(error);
}
}
}
module.exports = UsersController;