/** * Guides plugin routes. * * Three views, and the split between the last two is deliberate: reading a * guide and editing one are different jobs with different rights, and the * checkboxes are live in exactly one of them. * * meta.plugin = 'guides' so the ADR-009 router guard redirects when the backend * plugin is disabled. Every route requires auth because every guides API route * is behind JWT plus a guides.* permission. */ export default [ { path: 'guides', name: 'guides', component: () => import('./views/GuidesList.vue'), meta: { requiresAuth: true, plugin: 'guides' } }, { path: 'guides/new', name: 'guide-new', component: () => import('./views/GuideEditor.vue'), meta: { requiresAuth: true, plugin: 'guides' } }, { path: 'guides/:slug', name: 'guide-view', component: () => import('./views/GuideView.vue'), meta: { requiresAuth: true, plugin: 'guides' } }, { path: 'guides/:guideid/edit', name: 'guide-edit', component: () => import('./views/GuideEditor.vue'), meta: { requiresAuth: true, plugin: 'guides' } } ] // No full-screen routes: every view renders inside AppLayout. Declared so // routes.gen.js can read `.toplevel` off the module without Rollup warning // about a missing export. export const toplevel = []