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

export const routes: Array<RouteRecordRaw> = [
  {
    path: '/admin/teacher',
    component: AppLayout,
    children: [
      { path: '', component: () => import('./views/List.vue') },
      { path: '/admin/teacher/detail', component: () => import('./views/Detail.vue') },
      { path: '/admin/teacher/add', name: 'update', component: () => import('./views/Add.vue') }
    ]
  }
]
