import { Router } from "express";
import { authenticateToken } from "../middleware/authMiddleware";
import {
  getProductionReportData,
  getInventoryReportData,
  getPurchaseReportData,
  getQualityReportData,
  getEquipmentReportData,
  getMoldReportData,
} from "../controllers/analyticsReportController";

const router = Router();

router.use(authenticateToken);

router.get("/production/data", getProductionReportData);
router.get("/inventory/data", getInventoryReportData);
router.get("/purchase/data", getPurchaseReportData);
router.get("/quality/data", getQualityReportData);
router.get("/equipment/data", getEquipmentReportData);
router.get("/mold/data", getMoldReportData);

export default router;
