aboutsummaryrefslogtreecommitdiffhomepage
path: root/src/server/index.ts
diff options
context:
space:
mode:
authornsfisis <nsfisis@gmail.com>2025-12-07 17:37:08 +0900
committernsfisis <nsfisis@gmail.com>2025-12-07 17:37:08 +0900
commit797ef2fcfaa7ac63355c13809a644401a76250bc (patch)
tree70814083131572b31b72fdbaeea74b2d7aa60d91 /src/server/index.ts
parent943674471d062ea4494727ce308c8c429afd6f98 (diff)
downloadkioku-797ef2fcfaa7ac63355c13809a644401a76250bc.tar.gz
kioku-797ef2fcfaa7ac63355c13809a644401a76250bc.tar.zst
kioku-797ef2fcfaa7ac63355c13809a644401a76250bc.zip
feat(server): add Deck CRUD endpoints with tests
Implement complete Deck management API: - GET /api/decks - List user's decks - POST /api/decks - Create new deck - GET /api/decks/:id - Get deck by ID - PUT /api/decks/:id - Update deck - DELETE /api/decks/:id - Soft delete deck All endpoints require authentication and scope data to the authenticated user. Includes 22 unit tests covering success 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/index.ts')
-rw-r--r--src/server/index.ts5
1 files changed, 3 insertions, 2 deletions
diff --git a/src/server/index.ts b/src/server/index.ts
index d157f74..bcedb4e 100644
--- a/src/server/index.ts
+++ b/src/server/index.ts
@@ -2,7 +2,7 @@ import { serve } from "@hono/node-server";
import { Hono } from "hono";
import { logger } from "hono/logger";
import { errorHandler } from "./middleware/index.js";
-import { auth } from "./routes/index.js";
+import { auth, decks } from "./routes/index.js";
const app = new Hono();
@@ -17,7 +17,8 @@ const routes = app
.get("/api/health", (c) => {
return c.json({ status: "ok" }, 200);
})
- .route("/api/auth", auth);
+ .route("/api/auth", auth)
+ .route("/api/decks", decks);
export type AppType = typeof routes;