aboutsummaryrefslogtreecommitdiffhomepage
path: root/src/server/routes/index.ts
diff options
context:
space:
mode:
authornsfisis <nsfisis@gmail.com>2025-12-07 18:14:02 +0900
committernsfisis <nsfisis@gmail.com>2025-12-07 18:14:02 +0900
commit0b0e7e802fcb50652c3e9912363d996a039d56d8 (patch)
treea3fc98441f638159ddedf98c637ed6045c2de382 /src/server/routes/index.ts
parent2ca8bfadd49fb8e5f45b6324cff13c35a2858bb7 (diff)
downloadkioku-0b0e7e802fcb50652c3e9912363d996a039d56d8.tar.gz
kioku-0b0e7e802fcb50652c3e9912363d996a039d56d8.tar.zst
kioku-0b0e7e802fcb50652c3e9912363d996a039d56d8.zip
feat(server): add card CRUD endpoints
Implement card management API with create, read, update, and delete operations. Cards are nested under decks (/api/decks/:deckId/cards) with deck ownership verification on all operations. - Add Card interface and CardRepository to repository types - Create cardRepository with CRUD operations and soft delete - Add card routes with Zod validation and auth middleware - Include 29 tests covering all endpoints and error cases 🤖 Generated with [Claude Code](https://claude.com/claude-code) Co-Authored-By: Claude Opus 4.5 <noreply@anthropic.com>
Diffstat (limited to 'src/server/routes/index.ts')
-rw-r--r--src/server/routes/index.ts1
1 files changed, 1 insertions, 0 deletions
diff --git a/src/server/routes/index.ts b/src/server/routes/index.ts
index 43a3a07..009f2c3 100644
--- a/src/server/routes/index.ts
+++ b/src/server/routes/index.ts
@@ -1,2 +1,3 @@
export { auth } from "./auth.js";
+export { cards } from "./cards.js";
export { decks } from "./decks.js";