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

export const routes: Array<RouteRecordRaw> = [
  {
    path: '/teach/posts',
    component: AppLayout,
    children: [
      { path: '', component: () => import('./views/List.vue') },
      { path: '/teach/posts/detail', component: () => import('./views/View.vue') }
    ]
  }
]
