We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
2 parents d1e15f3 + 7c5a783 commit 9c15915Copy full SHA for 9c15915
src/handler.ts
@@ -1,5 +1,4 @@
1
import { Hono } from "hono";
2
-import { cors } from "hono/cors";
3
import { createMiddleware } from "hono/factory";
4
import { validator } from "hono/validator";
5
@@ -15,6 +14,7 @@ import { importTableFromJsonRoute } from "./import/json";
15
14
import { importTableFromCsvRoute } from "./import/csv";
16
import { handleStudioRequest } from "./studio";
17
import { corsPreflight } from "./cors";
+import { handleApiRequest } from "./api";
18
19
export interface StarbaseDBConfiguration {
20
outerbaseApiKey?: string;
@@ -205,6 +205,8 @@ export class StarbaseDB {
205
);
206
}
207
208
+ app.all("/api/*", async (c) => handleApiRequest(c.req.raw));
209
+
210
return app.fetch(request);
211
212
0 commit comments