diff options
Diffstat (limited to 'src/server/index.ts')
| -rw-r--r-- | src/server/index.ts | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/src/server/index.ts b/src/server/index.ts index 0391119..a2a3a77 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, cards, decks, study } from "./routes/index.js"; +import { auth, cards, decks, study, sync } from "./routes/index.js"; const app = new Hono(); @@ -20,7 +20,8 @@ const routes = app .route("/api/auth", auth) .route("/api/decks", decks) .route("/api/decks/:deckId/cards", cards) - .route("/api/decks/:deckId/study", study); + .route("/api/decks/:deckId/study", study) + .route("/api/sync", sync); export type AppType = typeof routes; |
