ready to test

Testing

Signed-off-by: Kenneth Obsequio <k80308392@gmail.com>
This commit is contained in:
2026-06-22 10:06:58 +08:00
parent bf48c95467
commit 439bb33f77
189 changed files with 17559 additions and 686 deletions
+25
View File
@@ -0,0 +1,25 @@
/***********************************************************************************************************************************************************************
* File Name : notifications.routes.js
* Type : Router (Admin)
* Description : Admin notification endpoints.
*
* GET /api/admin/notifications — paginated list
* GET /api/admin/notifications/unseen — unseen count
* PATCH /api/admin/notifications/seen-all — mark all seen
* PATCH /api/admin/notifications/:id/seen — mark one seen
*
* Guards: inherited from admin.routes.js (authenticate → requireAdmin → adminLimiter)
*
* Author: Kenneth Obsequio (@lash0000)
* Date Created: Jun. 19, 2026
***********************************************************************************************************************************************************************/
const express = require('express');
const router = express.Router();
const { list, unseenCount, markSeen, markAllSeen } = require('../../controllers/admin/notification.controller');
router.get('/', list);
router.get('/unseen', unseenCount);
router.patch('/seen-all', markAllSeen);
router.patch('/:id/seen', markSeen);
module.exports = router;