import { createRouter, createWebHistory } from 'vue-router' import Home from '../views/HomePage.vue' import Pronunciation from '../views/Pronunciation.vue' import Speaking from '../views/Speaking.vue' import EssayCorrection from '../views/EssayCorrection.vue' import ExamAnalysis from '../views/ExamAnalysis.vue' import SpellPractice from '../views/SpellPractice.vue' const router = createRouter({ history: createWebHistory(import.meta.env.BASE_URL), routes: [ { path: '/', name: 'home', component: Home }, { path: '/pronunciation', name: 'pronunciation', component: Pronunciation }, { path: '/speaking', name: 'speaking', component: Speaking }, { path: '/essay-correction', name: 'essay-correction', component: EssayCorrection }, { path: '/exam-analysis', name: 'exam-analysis', component: ExamAnalysis }, { path: '/spell-practice', name: 'spell-practice', component: SpellPractice } ] }) export default router