2024-10-15 11:57:37 +08:00
|
|
|
import { Router } from "express";
|
2024-10-17 12:07:30 +08:00
|
|
|
import { getAppSettings, updateAppSettings } from "../controllers/settingsController.js";
|
2024-10-15 11:57:37 +08:00
|
|
|
import { isAllowed } from "../middleware/isAllowed.js";
|
|
|
|
|
|
|
|
|
|
const router = Router();
|
2024-09-26 13:41:50 +08:00
|
|
|
|
2024-10-15 14:00:24 +08:00
|
|
|
router.get("/", getAppSettings);
|
|
|
|
|
router.put("/", isAllowed(["superadmin"]), updateAppSettings);
|
2024-09-26 13:41:50 +08:00
|
|
|
|
2024-10-15 11:57:37 +08:00
|
|
|
export default router;
|