packages/api/src/routes/rootConfig/getHomeAndMenus.js
Function getHomeAndMenus
has 30 lines of code (exceeds 25 allowed). Consider refactoring. Confirmed
Confirmed
async function getHomeAndMenus(context) {
const menus = await getMenus(context);
const homePageId = get(context.config, 'homePageId');
if (homePageId) {