diff --git a/website/modules/@apostrophecms/global/index.js b/website/modules/@apostrophecms/global/index.js index f4125149..8a58fd97 100644 --- a/website/modules/@apostrophecms/global/index.js +++ b/website/modules/@apostrophecms/global/index.js @@ -133,4 +133,18 @@ module.exports = { }, }, }, + apiRoutes(self) { + return { + get: { + nav(req) { + const global = req?.data?.global || {}; + return { + primaryNav: global.primaryNav || [], + footerLinks: global.footerLinks || [], + socialMediaLinks: global.socialMediaLinks || [], + }; + }, + }, + }; + }, };