Closed sachinsom93 closed 3 years ago
I have added some fields in User model for storing admin name for storing email of admin of that user.
Kindly review this @shivanshu1333., please let me know do I need to add anything ?
@shivanshu1333 Could you please review this ?
ISSUE FIXES: #61
Description
Implemented route for some funtionality related to admin like
ScreenShots
ScreenShot for addUser route(Only an admin can use this route)
ScreenShot for view all users of an admin(Only for an admin)
ScreenShot for updating role of a users(Only admin of that user can update his role)
ScreenShot for remove a users(Only admin of that user can remove him)
Additional context
I have also added error handing like for missing parameters, check that admin can't create another admin as his user etc.