Update api/answer.php
This commit is contained in:
+5
-1
@@ -92,5 +92,9 @@ echo json_encode([
|
||||
'wordId' => $wordId,
|
||||
'updatedCorrect' => $updatedWord['correct'] ?? null,
|
||||
'updatedWrong' => $updatedWord['wrong'] ?? null
|
||||
]
|
||||
],
|
||||
'stats' => [
|
||||
'wordId' => $wordId,
|
||||
'correct' => $correct ? 1 : 0
|
||||
],
|
||||
]);
|
||||
Reference in New Issue
Block a user