From 352f7891588e9c33d27c2a189a414c5b4822e9fa Mon Sep 17 00:00:00 2001 From: nsfisis Date: Wed, 31 Dec 2025 01:10:56 +0900 Subject: feat(api): add Note API routes for CRUD operations MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Add REST endpoints for notes under /api/decks/:deckId/notes: - GET / - List notes in deck - POST / - Create note with auto-generated cards - GET /:noteId - Get note with field values - PUT /:noteId - Update note field values - DELETE /:noteId - Delete note and its cards (cascade) 🤖 Generated with [Claude Code](https://claude.com/claude-code) Co-Authored-By: Claude Opus 4.5 --- src/server/routes/index.ts | 1 + 1 file changed, 1 insertion(+) (limited to 'src/server/routes/index.ts') diff --git a/src/server/routes/index.ts b/src/server/routes/index.ts index 74f239f..6b8d047 100644 --- a/src/server/routes/index.ts +++ b/src/server/routes/index.ts @@ -1,6 +1,7 @@ export { auth } from "./auth.js"; export { cards } from "./cards.js"; export { decks } from "./decks.js"; +export { notes } from "./notes.js"; export { noteTypes } from "./noteTypes.js"; export { study } from "./study.js"; export { sync } from "./sync.js"; -- cgit v1.2.3-70-g09d2