From 06dfae012c540508d836564c5b2fa8dd0e1744bc Mon Sep 17 00:00:00 2001 From: Thomas de Roo <2+thomas@noreply.localhost> Date: Mon, 15 Jun 2026 12:38:51 +0200 Subject: [PATCH] Update api/answer.php --- api/answer.php | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/api/answer.php b/api/answer.php index c937716..d7afca6 100644 --- a/api/answer.php +++ b/api/answer.php @@ -92,5 +92,9 @@ echo json_encode([ 'wordId' => $wordId, 'updatedCorrect' => $updatedWord['correct'] ?? null, 'updatedWrong' => $updatedWord['wrong'] ?? null - ] + ], + 'stats' => [ + 'wordId' => $wordId, + 'correct' => $correct ? 1 : 0 + ], ]); \ No newline at end of file