generated from DSCKGEC/project-template
-
Notifications
You must be signed in to change notification settings - Fork 18
Open
Labels
BackendBackend WorkBackend WorkEasyPoints alloted: 100Points alloted: 100KSoC’22This issue/pull request will be considered for KSoC’22.This issue/pull request will be considered for KSoC’22.enhancementNew feature or requestNew feature or request
Description
Two routes are to be created:
- POST
/users/ban/{id}- accessible only for admins. This route should take in user_id as params and update the user's status from verified to banned. - POST
/users/unban/{id}- accessible only for admins. This route should take in user_id as params and update the user's status from banned to verified. - POST
users/update- accessible for authorized users. This route will allow users to change their name, phone, address and username.
Make sure you use POST instead of PUT as HTML forms do not support methods other than GET and POST.
Metadata
Metadata
Assignees
Labels
BackendBackend WorkBackend WorkEasyPoints alloted: 100Points alloted: 100KSoC’22This issue/pull request will be considered for KSoC’22.This issue/pull request will be considered for KSoC’22.enhancementNew feature or requestNew feature or request