import { Router } from "express";
import { getAdminDashboard } from "../controllers/orderController.js";
import { requireStaff } from "../middleware/authMiddleware.js";
import { asyncHandler } from "../utils/asyncHandler.js";

const router = Router();

router.use(requireStaff);
router.get("/", asyncHandler(getAdminDashboard));

export default router;
