diff --git a/src/main/webapp/app/quiz/quiz.service.ts b/src/main/webapp/app/quiz/quiz.service.ts index d50e02c..76d7dbb 100644 --- a/src/main/webapp/app/quiz/quiz.service.ts +++ b/src/main/webapp/app/quiz/quiz.service.ts @@ -44,21 +44,21 @@ export interface ExamResult { } export async function fetchActiveSubjects(): Promise { - const response = await axios.get('/api/subjects?page=0&size=100'); + const response = await axios.get('api/subjects?page=0&size=100'); return response.data.filter(s => s.active); } export async function startExam(subjectId: number): Promise<{ attemptId: number; startedAt: string }> { - const response = await axios.post('/api/exam-attempts/start', { subjectId }); + const response = await axios.post('api/exam-attempts/start', { subjectId }); return response.data; } export async function loadQuestions(attemptId: number): Promise { - const response = await axios.get(`/api/exam-attempts/${attemptId}/questions`); + const response = await axios.get(`api/exam-attempts/${attemptId}/questions`); return response.data; } export async function submitExam(attemptId: number, answers: SubmitAnswer[]): Promise { - const response = await axios.post(`/api/exam-attempts/${attemptId}/submit`, { answers }); + const response = await axios.post(`api/exam-attempts/${attemptId}/submit`, { answers }); return response.data; }