From ef65c4e6d31b5df36bfff3254d614f61bf659bed Mon Sep 17 00:00:00 2001 From: nsfisis Date: Wed, 31 Dec 2025 01:18:37 +0900 Subject: feat(api): include note data in Card and Study route responses MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Update Card GET endpoint to return note and field values when available, and Study GET endpoint to include note data for card display rendering. This enables the frontend to render note-based cards with their templates. 🤖 Generated with [Claude Code](https://claude.com/claude-code) Co-Authored-By: Claude Opus 4.5 --- src/server/routes/study.ts | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) (limited to 'src/server/routes/study.ts') diff --git a/src/server/routes/study.ts b/src/server/routes/study.ts index 26e949a..ccb0692 100644 --- a/src/server/routes/study.ts +++ b/src/server/routes/study.ts @@ -51,7 +51,11 @@ export function createStudyRouter(deps: StudyDependencies) { } const now = new Date(); - const dueCards = await cardRepo.findDueCards(deckId, now, 100); + const dueCards = await cardRepo.findDueCardsWithNoteData( + deckId, + now, + 100, + ); return c.json({ cards: dueCards }, 200); }) -- cgit v1.2.3-70-g09d2