import { Router, type IRouter } from 'express';
import { authenticate } from '../middlewares/auth.middleware.js';
import { tenantMiddleware } from '../middlewares/tenant.middleware.js';
import * as ctrl from '../controllers/despacho-stats.controller.js';

const router: IRouter = Router();

router.use(authenticate);
router.use(tenantMiddleware);

router.get('/contribuyentes-stats', ctrl.getContribuyentesStats);
router.get('/mis-asignados', ctrl.getMisAsignados);
router.get('/equipo-stats', ctrl.getEquipoStats);

export { router as despachoStatsRoutes };
