/**
 * Computers plugin routes
 */
export default [
  {
    path: 'pcs',
    name: 'pcs',
    component: () => import('../../views/pcs/PCsList.vue')
  },
  {
    path: 'pcs/new',
    name: 'pc-new',
    component: () => import('../../views/pcs/PCForm.vue'),
    meta: { requiresAuth: true }
  },
  {
    path: 'pcs/:id',
    name: 'pc-detail',
    component: () => import('../../views/pcs/PCDetail.vue')
  },
  {
    path: 'pcs/:id/edit',
    name: 'pc-edit',
    component: () => import('../../views/pcs/PCForm.vue'),
    meta: { requiresAuth: true }
  },
  // Computer-specific settings
  {
    path: 'settings/pctypes',
    name: 'pctypes',
    component: () => import('../../views/settings/PCTypesList.vue'),
    meta: { requiresAuth: true, requiresAdmin: true }
  },
  {
    path: 'settings/operatingsystems',
    name: 'operatingsystems',
    component: () => import('../../views/settings/OperatingSystemsList.vue'),
    meta: { requiresAuth: true, requiresAdmin: true }
  }
]
