76 lines
1.9 KiB
JavaScript
76 lines
1.9 KiB
JavaScript
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'
|
|
import ProblemSolving from '../views/ProblemSolving.vue'
|
|
import QuestionGenerator from '../views/QuestionGenerator.vue'
|
|
import QuestionVariant from '../views/QuestionVariant.vue'
|
|
import AudioToText from '../views/AudioToText.vue'
|
|
import SpeakingEvaluation from '../views/SpeakingEvaluation.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
|
|
},
|
|
{
|
|
path: '/problem-solving',
|
|
name: 'problem-solving',
|
|
component: ProblemSolving
|
|
},
|
|
{
|
|
path: '/question-generator',
|
|
name: 'question-generator',
|
|
component: QuestionGenerator
|
|
},
|
|
{
|
|
path: '/question-variant',
|
|
name: 'question-variant',
|
|
component: QuestionVariant
|
|
},
|
|
{
|
|
path: '/audio-to-text',
|
|
name: 'audio-to-text',
|
|
component: AudioToText
|
|
},
|
|
{
|
|
path: '/speaking-evaluation',
|
|
name: 'speaking-evaluation',
|
|
component: SpeakingEvaluation
|
|
},
|
|
]
|
|
})
|
|
|
|
export default router
|