feat: complete OpenAPI migration and add test suite

This commit is contained in:
bipproduction
2026-02-07 23:57:37 +08:00
parent f0c317837f
commit 4640b72ca6
10 changed files with 187 additions and 91 deletions

View File

@@ -11,6 +11,7 @@ const api = new Elysia({
prefix: "/api",
})
.use(cors())
.get("/health", () => ({ ok: true }))
.all("/auth/*", ({ request }) => auth.handler(request))
.get("/session", async ({ request }) => {
const data = await auth.api.getSession({ headers: request.headers });