forked from UKSOURCE/cms.hailearning.edu.vn
feat/huy-05022026-cms-add-footer-api-management
This commit is contained in:
@@ -58,8 +58,9 @@ router.get("/api/header-menu", headerMenuController.api);
|
||||
router.get("/api/social-links", socialLinkController.index);
|
||||
router.get("/api/social-links/:platform", socialLinkController.show);
|
||||
|
||||
// Footer API route
|
||||
router.get("/api/footer", footerController.api);
|
||||
// Footer API routes
|
||||
router.get("/api/footer", footerController.getFooter);
|
||||
router.put("/api/admin/footer", footerController.updateFooter);
|
||||
|
||||
// Contact API route
|
||||
router.get("/api/contact", contactController.api);
|
||||
@@ -175,4 +176,12 @@ router.get("/api/service-slugs", serviceController.getServiceSlugs);
|
||||
router.get("/api/visa", visaController.api);
|
||||
router.get("/api/visa/country", visaController.apiCountries);
|
||||
|
||||
// Test route for footer
|
||||
router.get("/test-footer", (req, res) => {
|
||||
res.render("test-footer", {
|
||||
title: "Footer Test",
|
||||
layout: "layouts/main",
|
||||
});
|
||||
});
|
||||
|
||||
module.exports = router;
|
||||
|
||||
Reference in New Issue
Block a user