backend icon indicating copy to clipboard operation
backend copied to clipboard

[REFACTOR] :recycle: change routes for users: `markadmin` and `markverified`

Open aayushchugh opened this issue 3 years ago • 3 comments

Description

Currently we are using these routes

Mark user as admin --> PATCh /api/admin/users/markadmin/:id Mark user as verified --> PATCH /api/admin/users/markverified/:id Get all users --> GET /api/users Update Username --> PATCh /api/users/:id Delete user --> DELETE /api/admin/users/:id

we can change the routes of markadmin and markverified to follow conventions eg:-

Mark user as admin --> PATCH /api/admin/users/:id/markadmin Mark user as verified --> PATCH /api/admin/users/:id/markverified

Anything else?

No response

aayushchugh avatar Oct 28 '22 14:10 aayushchugh

@MultiEmail/backend-developers I need feedback that if should we work on this or not

aayushchugh avatar Oct 28 '22 14:10 aayushchugh

I can work on this today or tomorrow

BitOfAByte avatar Oct 28 '22 15:10 BitOfAByte

Yeah! They look good. Go ahead with it.

is-it-ayush avatar Oct 28 '22 20:10 is-it-ayush