mirror of
https://github.com/cheveguerra/whaticket-community.git
synced 2026-04-18 11:49:19 +00:00
changed all models to typescript
This commit is contained in:
@@ -2,15 +2,13 @@ import { Request, Response } from "express";
|
||||
|
||||
import AuthUserService from "../services/UserServices/AuthUserSerice";
|
||||
|
||||
const store = async (req: Request, res: Response): Promise<Response> => {
|
||||
export const store = async (req: Request, res: Response): Promise<Response> => {
|
||||
const { email, password } = req.body;
|
||||
|
||||
const { user, token } = await AuthUserService({ email, password });
|
||||
const { token, user } = await AuthUserService({ email, password });
|
||||
|
||||
return res.status(200).json({
|
||||
user,
|
||||
token
|
||||
});
|
||||
};
|
||||
|
||||
export default store;
|
||||
|
||||
Reference in New Issue
Block a user