scaffold backend with hono/bun

Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
This commit is contained in:
2026-03-10 11:20:16 +01:00
parent 4432d1f711
commit 93db3c91bf
6 changed files with 133 additions and 0 deletions
+13
View File
@@ -0,0 +1,13 @@
import { Hono } from "hono";
import { cors } from "hono/cors";
const app = new Hono();
app.use("*", cors());
app.get("/health", (c) => c.json({ status: "ok" }));
export default {
port: Number(process.env.PORT ?? 3000),
fetch: app.fetch,
};