The User module's controller (/server/api/user/user.controller.js) methods return only HTTP status codes (i.e. 200, 301, 404, 500). These responses should changed to return, at the very least, a simple JSON representation of what has occurred.
The following statements in user.controller.js should be updated:
We will likely update these statements to return the data that has changed as a result of the API call - this issue will pave the way for those changes.
Encapsulates issues: #706 | #707 | #708 | #709 | #712
The User module's controller (
/server/api/user/user.controller.js
) methods return only HTTP status codes (i.e.200
,301
,404
,500
). These responses should changed to return, at the very least, a simple JSON representation of what has occurred.The following statements in
user.controller.js
should be updated:Before:
After:
We will likely update these statements to return the data that has changed as a result of the API call - this issue will pave the way for those changes.