import { RouteRecordRaw } from 'vue-router'
import index from '../index.vue'

export default {
  path: '/room',
  meta: {
    authorize: true
  },
  component: index,
  redirect: 'room',
  children: [
    {
      path: '',
      name: 'room',
      component: () => import('./index.vue')
    },
    {
      path: '/create',
      name: 'room/create',
      component: () => import('./room-create.vue')
    },
    {
      path: '/list',
      name: 'room/list',
      component: () => import('./room-device-list.vue')
    },
    {
      path: '/detail',
      name: 'room/detail',
      component: () => import('./room-device-detail.vue')
    }
  ]
} as RouteRecordRaw