import express from 'express';
import { getOverviewStats, getLiveVisitors } from '../controllers/overviewController.js';
import verifyToken from '../middleware/authMiddleware.js';

const router = express.Router();

// GET /api/admin/overview/stats (Admin only)
router.get('/stats', verifyToken, getOverviewStats);

// GET /api/admin/overview/live-visitors (Admin only, fast real-time polling)
router.get('/live-visitors', verifyToken, getLiveVisitors);

export default router;
