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