/**
 * Printers plugin routes
 */
export default [
  {
    path: 'printers',
    name: 'printers',
    component: () => import('../../views/printers/PrintersList.vue')
  },
  {
    path: 'printers/new',
    name: 'printer-new',
    component: () => import('../../views/printers/PrinterForm.vue'),
    meta: { requiresAuth: true }
  },
  {
    path: 'printers/:id',
    name: 'printer-detail',
    component: () => import('../../views/printers/PrinterDetail.vue')
  },
  {
    path: 'printers/:id/edit',
    name: 'printer-edit',
    component: () => import('../../views/printers/PrinterForm.vue'),
    meta: { requiresAuth: true }
  },
  // printer-specific settings
  {
    path: 'settings/modelsupplies',
    name: 'model-supplies',
    component: () => import('../../views/settings/ModelSuppliesList.vue'),
    meta: { requiresAuth: true }
  },
  {
    path: 'settings/printerdrivers',
    name: 'printer-drivers',
    component: () => import('../../views/settings/PrinterDriversList.vue'),
    meta: { requiresAuth: true, requiresAdmin: true }
  }
]
