Update user api
Opened this issue · 0 comments
pbteja1998 commented
- Add an api for updating user. (
PUT /api/users/:id
) - Expect user jwt token as
Bearer Token
in header. - Validate whether id passed and the user fetched from token are same. If not, send
401
.