Register user in MongoDB.
parameters: {
"email": "string",
"companyName": "string",
"password": "string",
"products": "string[]"
}
response: {
"success": "boolean",
"msg": "string"
}
Authenticate user login. Return user if pass.
parameters: {
"email": "string",
"password": "string"
}
response: {
"success": "boolean",
"msg": "string",
"user": "Object"
}
update the user's feedback array with a new feedback entry. Return new user if successful
parameters: {
"email": "string",
"feedback": "Object**"
}
response: {
"success": "boolean",
"msg": "string",
"user": "Object"
}
** Object: {
"products": "string[]",
"rating": "number[]"
}
Sends a response to the mobile side.
parameters: {
"email": "string",
}
response: {
"success": "boolean",
"questions": "string[]",
"products": "string[]"
}