mirror of
https://github.com/cheveguerra/whaticket-community.git
synced 2026-04-18 19:59:20 +00:00
15 lines
372 B
TypeScript
15 lines
372 B
TypeScript
import { Request, Response } from "express";
|
|
|
|
import AuthUserService from "../services/UserServices/AuthUserSerice";
|
|
|
|
export const store = async (req: Request, res: Response): Promise<Response> => {
|
|
const { email, password } = req.body;
|
|
|
|
const { token, user } = await AuthUserService({ email, password });
|
|
|
|
return res.status(200).json({
|
|
user,
|
|
token
|
|
});
|
|
};
|