Update api/answer.php

This commit is contained in:
2026-06-15 12:38:51 +02:00
parent 4d21fadd73
commit 06dfae012c
+5 -1
View File
@@ -92,5 +92,9 @@ echo json_encode([
'wordId' => $wordId,
'updatedCorrect' => $updatedWord['correct'] ?? null,
'updatedWrong' => $updatedWord['wrong'] ?? null
]
],
'stats' => [
'wordId' => $wordId,
'correct' => $correct ? 1 : 0
],
]);