/**
 * Network plugin routes
 */
export default [
  {
    path: 'network',
    name: 'network',
    component: () => import('../../views/network/NetworkDevicesList.vue')
  },
  {
    path: 'network/new',
    name: 'network-new',
    component: () => import('../../views/network/NetworkDeviceForm.vue'),
    meta: { requiresAuth: true }
  },
  {
    path: 'network/:id',
    name: 'network-detail',
    component: () => import('../../views/network/NetworkDeviceDetail.vue')
  },
  {
    path: 'network/:id/edit',
    name: 'network-edit',
    component: () => import('../../views/network/NetworkDeviceForm.vue'),
    meta: { requiresAuth: true }
  },
  // Network-specific settings
  {
    path: 'settings/vlans',
    name: 'vlans',
    component: () => import('../../views/settings/VLANsList.vue'),
    meta: { requiresAuth: true, requiresAdmin: true }
  },
  {
    path: 'settings/subnets',
    name: 'subnets',
    component: () => import('../../views/settings/SubnetsList.vue'),
    meta: { requiresAuth: true, requiresAdmin: true }
  }
]
