import { Router } from "express";
import { getSettings, updateSettings } from "../controllers/settingsController.js";
import { requireAdmin } from "../middleware/auth.js";

const router = Router();

router.use(requireAdmin);

router.get("/", getSettings);
router.post("/", updateSettings);

export default router;
