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

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