Skip to content

Commit 9c15915

Browse files
committed
Merge branch 'main' of https://github.com/outerbase/starbasedb into ehesp/rework
2 parents d1e15f3 + 7c5a783 commit 9c15915

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

src/handler.ts

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,4 @@
11
import { Hono } from "hono";
2-
import { cors } from "hono/cors";
32
import { createMiddleware } from "hono/factory";
43
import { validator } from "hono/validator";
54

@@ -15,6 +14,7 @@ import { importTableFromJsonRoute } from "./import/json";
1514
import { importTableFromCsvRoute } from "./import/csv";
1615
import { handleStudioRequest } from "./studio";
1716
import { corsPreflight } from "./cors";
17+
import { handleApiRequest } from "./api";
1818

1919
export interface StarbaseDBConfiguration {
2020
outerbaseApiKey?: string;
@@ -205,6 +205,8 @@ export class StarbaseDB {
205205
);
206206
}
207207

208+
app.all("/api/*", async (c) => handleApiRequest(c.req.raw));
209+
208210
return app.fetch(request);
209211
}
210212

0 commit comments

Comments
 (0)