/** * Machines plugin routes */ export default [ { path: 'settings/machinetypes', name: 'machinetypes', component: () => import('./views/MachineTypesList.vue'), meta: { requiresAuth: true, requiresAdmin: true, plugin: 'machines' } }, { path: 'machines', name: 'machines', component: () => import('./views/MachinesList.vue'), meta: { plugin: 'machines' } }, { path: 'machines/new', name: 'machine-new', component: () => import('./views/MachineForm.vue'), meta: { requiresAuth: true, plugin: 'machines' } }, { path: 'machines/:id', name: 'machine-detail', component: () => import('./views/MachineDetail.vue'), meta: { plugin: 'machines' } }, { path: 'machines/:id/edit', name: 'machine-edit', component: () => import('./views/MachineForm.vue'), meta: { requiresAuth: true, plugin: 'machines' } } ] // No full-screen routes: every view in this plugin renders inside // AppLayout. Declared so routes.gen.js can read `.toplevel` off the module // without Rollup warning about a missing export. export const toplevel = []