/**
 * Knowledge Base plugin routes
 */
export default [
  {
    path: 'knowledgebase',
    name: 'knowledgebase',
    component: () => import('./views/KnowledgeBaseList.vue'),
    meta: { plugin: 'knowledgebase' }
  },
  {
    path: 'knowledgebase/new',
    name: 'knowledgebase-new',
    component: () => import('./views/KnowledgeBaseForm.vue'),
    meta: { requiresAuth: true, plugin: 'knowledgebase' }
  },
  {
    path: 'knowledgebase/:id',
    name: 'knowledgebase-detail',
    component: () => import('./views/KnowledgeBaseDetail.vue'),
    meta: { plugin: 'knowledgebase' }
  },
  {
    path: 'knowledgebase/:id/edit',
    name: 'knowledgebase-edit',
    component: () => import('./views/KnowledgeBaseForm.vue'),
    meta: { requiresAuth: true, plugin: 'knowledgebase' }
  }
]

// 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 = []
