diff --git a/src/Controllers/AuditorController.ts b/src/Controllers/AuditorController.ts index bd68509a41bcaafa157b7021f4af63651841fc19..13da5d97b2b572595ea4677cbbe9862b2c51b809 100644 --- a/src/Controllers/AuditorController.ts +++ b/src/Controllers/AuditorController.ts @@ -9,9 +9,9 @@ const router = Router(); const auditGet = async (req: Request, res: Response) => { try { const token = req.headers.authorization; - const { filters } = req.query; + const { filters } = req.body; const audits = await - Auditor.getAudit(Number(req.query.cant), Number(req.query.page), token, filters as string[]); + Auditor.getAudit(Number(req.body.cant), Number(req.body.page), token, filters as string[]); return logAndRespond(res, 200, 'send', audits, 'info', null, null); } catch (error) { const e = error as Error; @@ -30,7 +30,7 @@ const calculationAuditGet = async (req: Request, res: Response) => { } }; -router.get('/', auditGet); +router.post('/', auditGet); router.post('/calculations', calculationAuditGet); export default router;