import type { RouteRecordRaw } from 'vue-router'
import AppLayout from '@/components/layout/Index.vue'

export const routes: Array<RouteRecordRaw> = [
  {
    path: '/resource/video',
    component: AppLayout,
    children: [
      { path: '', component: () => import('./views/List.vue') },
      { path: 'update', component: () => import('./views/Update.vue') },
      { path: 'view', component: () => import('./views/View.vue') },
      { path: 'edit-courseware', component: () => import('./views/EditCourseware.vue') },
      { path: 'upload', component: () => import('./views/BatchUpload.vue') }
      // { path: 'update/:id', component: () => import('./views/Update.vue'), props: true }
    ]
  }
]
