feat: migrate from Elysia Eden to Contract-First API (OpenAPI)

This commit is contained in:
bipproduction
2026-02-07 18:12:52 +08:00
parent 6abd32650d
commit f0c317837f
10 changed files with 1855 additions and 36 deletions

View File

@@ -0,0 +1,7 @@
import api from "../src/api";
const response = await api.handle(new Request("http://localhost/api/docs/json"));
const schema = await response.json();
await Bun.write("generated/schema.json", JSON.stringify(schema, null, 2));
console.log("✅ OpenAPI schema generated at generated/schema.json");