User Change Avatar
POST
/user/avatar
curl \
--request POST 'http://localhost:3000/user/avatar' \
--header "Content-Type: multipart/form-data" \
--form "avatar=@file"
Response examples (200)
{
"code": "SUCCESS",
"message": "Success",
"results": "string"
}
Response examples (400)
{
"code": 400,
"message": "field cannot be blank",
"results": {}
}
Response examples (500)
{
"code": "INTERNAL_SERVER_ERROR",
"message": "you are not loggin",
"results": {}
}