const express = require("express");
const router = express.Router();
const authMiddleware = require("../middleware/authMiddleware");
const { 
  getDashboardAnalytics, 
  getStatisticalReports,
  getLastUpdates 
} = require("../controllers/dashboard");

// Get dashboard analytics
router.get("/analytics", authMiddleware, getDashboardAnalytics);

// Get statistical reports data
router.get("/statistical-reports", authMiddleware, getStatisticalReports);

// Get last updates (activity logs) - Super admin only
router.get("/last-updates", authMiddleware, getLastUpdates);

module.exports = router;
