Skip to content
This repository was archived by the owner on Aug 1, 2021. It is now read-only.

Commit 01e73ed

Browse files
authored
Merge pull request #14 from diomalta/master
Correcting the response order for frontend take status
2 parents 80ee54c + b47189a commit 01e73ed

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/api/routes/auth.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -25,7 +25,7 @@ export default (app: Router) => {
2525
try {
2626
const authServiceInstance = Container.get(AuthService);
2727
const { user, token } = await authServiceInstance.SignUp(req.body as IUserInputDTO);
28-
return res.json({ user, token }).status(201);
28+
return res.status(201).json({ user, token });
2929
} catch (e) {
3030
logger.error('🔥 error: %o', e);
3131
return next(e);

0 commit comments

Comments
 (0)