//relatorio import { Request, Response } from "express"; import AppError from "../errors/AppError"; import ShowTicketReport from "../services/TicketServices/ShowTicketReport"; export const reportUser = async (req: Request, res: Response): Promise => { const { userId } = req.params; console.log('******* Estrou no report: ', userId) const test = await ShowTicketReport(userId); return res.status(200).json(test); }; /*export const reportAll = async (req: Request, res: Response): Promise => { const test = await ShowTicketReport(); return res.status(200).json(test); };*/