aboutsummaryrefslogtreecommitdiff
path: root/api
diff options
context:
space:
mode:
Diffstat (limited to 'api')
-rw-r--r--api/index.ts9
1 files changed, 8 insertions, 1 deletions
diff --git a/api/index.ts b/api/index.ts
index be3392b..15976e3 100644
--- a/api/index.ts
+++ b/api/index.ts
@@ -1,3 +1,10 @@
import app from "../src/server.js";
+import { handle } from "hono/vercel";
-export default app;
+const handler = handle(app);
+
+export const GET = handler;
+export const POST = handler;
+export const PATCH = handler;
+export const PUT = handler;
+export const OPTIONS = handler;