Files
cms.techvanguard.vn/controllers/accreditationController.js
T
Tống Thành Đạt 8b6bf5fe6e feat(cms): add management for partnerships, history, accreditation, admissions, and policies pages
Implement a singleton page content system to manage static informational pages. This includes:
- New controllers, models, and data files for Partnerships, History, Accreditation, Admissions, and Policies.
- Admin routes and views for updating page content.
- Public API endpoints for fetching page data.
- Migration scripts for initializing page data.
- Updated admin navigation layout to include a dropdown for "About" sections.
- Audit action constants for tracking updates to these pages.
2026-04-20 14:08:38 +07:00

12 lines
483 B
JavaScript

const AccreditationPage = require("../models/accreditationPage");
const AUDIT_ACTIONS = require("../constants/auditAction");
const pageContentConfig = require("../utils/pageContentConfig");
const createPageContentController = require("./_createPageContentController");
module.exports = createPageContentController({
model: AccreditationPage,
modelName: "AccreditationPage",
auditAction: AUDIT_ACTIONS.UPDATE_ACCREDITATION,
editorConfig: pageContentConfig.accreditation,
});