resources/frontend/core/modules/Screenshots/module.init.js
export const ModuleConfig = {
routerPrefix: 'screenshots',
loadOrder: 20,
moduleName: 'Screenshots',
};
export function init(context) {
context.addRoute({
path: '/screenshots',
name: 'screenshots',
component: () => import(/* webpackChunkName: "screenshots" */ './views/Screenshots.vue'),
meta: {
auth: true,
},
});
context.addNavbarEntry({
label: 'navigation.screenshots',
to: {
name: 'screenshots',
},
});
context.addLocalizationData({
en: require('./locales/en'),
ru: require('./locales/ru'),
});
return context;
}