2026.03.29 20:00 Gitea_manager javítás előtt
This commit is contained in:
@@ -62,7 +62,7 @@ export const useQuizStore = defineStore('quiz', () => {
|
||||
isLoading.value = true
|
||||
error.value = null
|
||||
try {
|
||||
const data = await apiFetch('/api/v1/gamification/quiz/stats')
|
||||
const data = await apiFetch('/gamification/quiz/stats')
|
||||
userPoints.value = data.total_quiz_points || 0
|
||||
currentStreak.value = data.current_streak || 0
|
||||
lastPlayedDate.value = data.last_played || null
|
||||
@@ -89,7 +89,7 @@ export const useQuizStore = defineStore('quiz', () => {
|
||||
isLoading.value = true
|
||||
error.value = null
|
||||
try {
|
||||
const data = await apiFetch('/api/v1/gamification/quiz/daily')
|
||||
const data = await apiFetch('/gamification/quiz/daily')
|
||||
questions.value = data.questions || []
|
||||
return data
|
||||
} catch (err) {
|
||||
@@ -109,7 +109,7 @@ export const useQuizStore = defineStore('quiz', () => {
|
||||
|
||||
async function answerQuestion(questionId, selectedOptionIndex) {
|
||||
try {
|
||||
const response = await apiFetch('/api/v1/gamification/quiz/answer', {
|
||||
const response = await apiFetch('/gamification/quiz/answer', {
|
||||
method: 'POST',
|
||||
body: JSON.stringify({
|
||||
question_id: questionId,
|
||||
@@ -136,7 +136,7 @@ export const useQuizStore = defineStore('quiz', () => {
|
||||
|
||||
async function completeDailyQuiz() {
|
||||
try {
|
||||
await apiFetch('/api/v1/gamification/quiz/complete', {
|
||||
await apiFetch('/gamification/quiz/complete', {
|
||||
method: 'POST'
|
||||
})
|
||||
lastPlayedDate.value = new Date().toISOString()
|
||||
|
||||
Reference in New Issue
Block a user