Migrate tests to ESM
This commit is contained in:
1 parent
f057807b56
commit
896b3437e5
22 files changed
+1153
-238
No files matched your search
@@ -1,14 +1,13 @@
|
||||
import { Router } from "express";
|
||||
import settingsController from "../controllers/settingsController.js";
|
||||
import {
|
||||
getAppSettings,
|
||||
updateAppSettings,
|
||||
} from "../controllers/settingsController.js";
|
||||
import { isAllowed } from "../middleware/isAllowed.js";
|
||||
|
||||
const router = Router();
|
||||
|
||||
router.get("/", settingsController.getAppSettings);
|
||||
router.put(
|
||||
"/",
|
||||
isAllowed(["superadmin"]),
|
||||
settingsController.updateAppSettings
|
||||
);
|
||||
router.get("/", getAppSettings);
|
||||
router.put("/", isAllowed(["superadmin"]), updateAppSettings);
|
||||
|
||||
export default router;
|
||||
Reference in new issue
Block a user