From 416bce6330c098bf7a2cab0af67fa91753975e09 Mon Sep 17 00:00:00 2001 From: SebastienBtr Date: Sun, 8 Nov 2020 16:23:47 +0100 Subject: [PATCH] change response code for signup --- services/auth/src/controllers/signUp.ctrl.js | 2 +- specification/auth/api.json | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/services/auth/src/controllers/signUp.ctrl.js b/services/auth/src/controllers/signUp.ctrl.js index 9a972e0..7d53e94 100644 --- a/services/auth/src/controllers/signUp.ctrl.js +++ b/services/auth/src/controllers/signUp.ctrl.js @@ -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 }); diff --git a/specification/auth/api.json b/specification/auth/api.json index 3ba69fb..81dd6b0 100644 --- a/specification/auth/api.json +++ b/specification/auth/api.json @@ -77,7 +77,7 @@ "type": "signup" }, "responses": { - "200": { + "204": { "type": "unit" }, "412": {