forked from UKSOURCE/cms.hailearning.edu.vn
feat: Refactor header menu and social link controllers to use RESTful method names, remove social link API routes, and add comprehensive social link management to admin routes.
This commit is contained in:
@@ -56,12 +56,8 @@ router.get("/api/menu-tree", headerController.getMenuTreeAPI);
|
||||
router.get("/api/header-menu", headerMenuController.api);
|
||||
|
||||
// Social Links API routes
|
||||
router.get("/api/social-links", socialLinkController.getAll);
|
||||
router.get("/api/social-links", socialLinkController.index);
|
||||
router.get("/api/social-links/:platform", socialLinkController.show);
|
||||
router.post("/api/social-links", socialLinkController.store);
|
||||
router.put("/api/social-links/:platform", socialLinkController.update);
|
||||
router.delete("/api/social-links/:platform", socialLinkController.destroy);
|
||||
router.post("/api/social-links/bulk-update", socialLinkController.bulkUpdate);
|
||||
|
||||
// Footer API route
|
||||
router.get("/api/footer", footerController.api);
|
||||
|
||||
Reference in New Issue
Block a user