enabled socket io in settings controller

This commit is contained in:
canove
2020-09-20 11:53:31 -03:00
parent 23d16679b6
commit 02c37276ba
3 changed files with 13 additions and 9 deletions

View File

@@ -8,7 +8,9 @@ export const store = async (req: Request, res: Response): Promise<Response> => {
const { token, user } = await AuthUserService({ email, password });
return res.status(200).json({
user,
token
token,
username: user.name,
profile: user.profile,
userId: user.id
});
};