import { createRouter, createWebHistory } from 'vue-router' import type { RouteRecordRaw } from 'vue-router' const routes: RouteRecordRaw[] = [ { path: '/', redirect: '/cv' }, { path: '/cv', name: 'cv', component: () => import('@/views/CvEditor.vue') }, { path: '/research', name: 'research', component: () => import('@/views/Research.vue') }, { path: '/applications', name: 'applications', component: () => import('@/views/Applications.vue') }, { path: '/applications/:id', name: 'application-detail', component: () => import('@/views/ApplicationDetail.vue'), props: true } ] const router = createRouter({ history: createWebHistory(), routes }) export default router