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