Is your feature request related to a problem? Please describe.
as a user I want to be able to change my settings so that the site will reflect my preferences
Describe the solution you'd like
We should create 2 new endpoints:
GET /api/v1/users/current
should return the current user
will have the same data as GET /api/v1/users/:id but may be extended further later
PUT /api/v1/users/current
updates user information
user should be able to update:
username
profile picture
email
password
extend both GET /api/v1/users/current and GET /api/v1/users/:id to also return profile picture
Is your feature request related to a problem? Please describe. as a user I want to be able to change my settings so that the site will reflect my preferences
Describe the solution you'd like We should create 2 new endpoints:
GET /api/v1/users/current
GET /api/v1/users/:id
but may be extended further laterPUT /api/v1/users/current
extend both
GET /api/v1/users/current
andGET /api/v1/users/:id
to also return profile pictureprofile picture should be uploaded to local filesystem and should be served when requested. https://stackoverflow.com/questions/29920824/how-to-serve-images-in-nodejs-express
Checklist: