Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Flag PATCH users/self route as Deprecated #2196

Closed
Closed
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 4 additions & 0 deletions controllers/users.js
Original file line number Diff line number Diff line change
Expand Up @@ -388,6 +388,10 @@ const getSelfDetails = async (req, res) => {

/**
* Update the user
* @deprecated [SCHEDULED] This Controller will be removed in the near Future, New controller TBD.
yesyash marked this conversation as resolved.
Show resolved Hide resolved
*
* @todo vikas would be working on this as a sub part of his task issue #2126
* https://github.com/vikasosmium
*
* @param req {Object} - Express request object
* @param req.body {Object} - User object
Expand Down
5 changes: 5 additions & 0 deletions routes/users.js
Original file line number Diff line number Diff line change
Expand Up @@ -16,6 +16,11 @@ router.post("/", authorizeAndAuthenticate([ROLES.SUPERUSER], [Services.CRON_JOB_
router.post("/update-in-discord", authenticate, authorizeRoles([SUPERUSER]), users.setInDiscordScript);
router.post("/verify", authenticate, users.verifyUser);
router.get("/userId/:userId", users.getUserById);
/**
* @deprecated [SCHEDULED] This endpoint will be deprecated in the near future. New EndPoint TBD.
* @todo vikas would be working on this as a sub part of his task issue #2126
* https://github.com/vikasosmium
*/
router.patch("/self", authenticate, userValidator.updateUser, users.updateSelf);
router.get("/", userValidator.getUsers, users.getUsers);
router.get("/self", authenticate, users.getSelfDetails);
Expand Down
Loading