Merge branch 'fea/dat-24042026-submission-management' of https://gits.techvanguard.vn/UKSOURCE/cms.lams into merge/toan-24042026

This commit is contained in:
2026-04-24 23:33:12 +07:00
18 changed files with 1534 additions and 54 deletions
+23
View File
@@ -19,6 +19,8 @@ const formController = require("../controllers/formController");
const contactController = require("../controllers/contactController");
const studentSupportController = require("../controllers/studentSupportController");
const requestInfoController = require("../controllers/requestInfoController");
const submissionController = require("../controllers/submissionController");
const newsletterSubscriptionController = require("../controllers/newsletterSubscriptionController");
const pageController = require("../controllers/pageController");
const settingController = require("../controllers/settingController");
@@ -199,6 +201,27 @@ router.put(
contactController.updateSubmissionStatus,
);
// Unified submission management
router.get("/submissions", ensureAuthenticated, submissionController.index);
router.get("/submissions/data", ensureAuthenticated, submissionController.list);
router.get("/submissions/:id", ensureAuthenticated, submissionController.detail);
router.patch("/submissions/:id", ensureAuthenticated, submissionController.update);
router.get(
"/newsletter-subscriptions/data",
ensureAuthenticated,
newsletterSubscriptionController.list,
);
router.get(
"/newsletter-subscriptions/:id",
ensureAuthenticated,
newsletterSubscriptionController.detail,
);
router.patch(
"/newsletter-subscriptions/:id",
ensureAuthenticated,
newsletterSubscriptionController.update,
);
// Student Support (LAMS static page)
router.get(
"/student-support",