Skip to content

[REFACTOR] ♻️ change routes for users: markadmin and markverified #167

Description

@aayushchugh

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

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

Labels

refactorRefactor the code

Type

No type

Projects

Relationships

None yet

Development

No branches or pull requests

Issue actions