Signed-off-by: Kenneth Obsequio <k80308392@gmail.com>
This commit is contained in:
2026-07-11 12:12:29 +08:00
parent e1ffdab190
commit 82ea9c77c4
19 changed files with 530 additions and 122 deletions
@@ -5,8 +5,10 @@ const ctrl = require('../../controllers/admin/notification_templates.controlle
// Auth + requireAdmin applied by admin.routes.js
router.get('/', ctrl.getNotificationTemplates);
router.get('/:id', ctrl.getNotificationTemplate);
router.put('/:id', ctrl.updateNotificationTemplate);
router.get ('/', ctrl.getNotificationTemplates);
router.post ('/', ctrl.createNotificationTemplate);
router.get ('/:id', ctrl.getNotificationTemplate);
router.put ('/:id', ctrl.updateNotificationTemplate);
router.delete('/:id', ctrl.deleteNotificationTemplate);
module.exports = router;
+2 -1
View File
@@ -15,10 +15,11 @@
***********************************************************************************************************************************************************************/
const express = require('express');
const router = express.Router();
const { list, unseenCount, markSeen, markAllSeen } = require('../../controllers/admin/notification.controller');
const { list, unseenCount, stickyAnnouncement, markSeen, markAllSeen } = require('../../controllers/admin/notification.controller');
router.get('/', list);
router.get('/unseen', unseenCount);
router.get('/sticky', stickyAnnouncement);
router.patch('/seen-all', markAllSeen);
router.patch('/:id/seen', markSeen);
+1
View File
@@ -17,6 +17,7 @@ const questionCtrl = require("../../controllers/admin/courses.controller"); // s
// ── static segments first ─────────────────────────────────────────────────────
router.get("/", ctrl.getUnits);
router.post("/", ctrl.createUnit);
router.post("/full", ctrl.createUnitFull);
router.get("/flat", ctrl.getUnitsFlat);
router.get("/field-values", ctrl.getUnitFieldValues);
router.delete("/bulk", ctrl.bulkArchiveUnits);