/**
 * 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' }
  }
]
