coderplex-org/openrank-backend

Update user api

Opened this issue · 0 comments

  • 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.