Skip to content

Commit

Permalink
change response code for signup
Browse files Browse the repository at this point in the history
  • Loading branch information
SebastienBtr committed Nov 8, 2020
1 parent 4af0963 commit 416bce6
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion services/auth/src/controllers/signUp.ctrl.js
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,7 @@ module.exports.signUp = async (req, res) => {
try {
await createUser(req.body.firstName, req.body.lastName,
req.body.email, req.body.password);
res.status(200).send({});
res.status(204).send();
} catch (e) {
winston.error(e.response.data.message);
res.status(e.response.status).send({ message: e.response.data.message });
Expand Down
2 changes: 1 addition & 1 deletion specification/auth/api.json
Original file line number Diff line number Diff line change
Expand Up @@ -77,7 +77,7 @@
"type": "signup"
},
"responses": {
"200": {
"204": {
"type": "unit"
},
"412": {
Expand Down

0 comments on commit 416bce6

Please sign in to comment.