aboutsummaryrefslogtreecommitdiff
path: root/examples/hono/src/index.ts
diff options
context:
space:
mode:
authorGravatar Dennis Dudek <admin@kapsonfire.de> 2022-10-17 05:52:39 +0200
committerGravatar GitHub <noreply@github.com> 2022-10-16 20:52:39 -0700
commit00ae8f79e4c55bf0769a5d0066d2947cf5c52073 (patch)
treed187172212bf5afcf4589ceb7bb2c8e198e8c84f /examples/hono/src/index.ts
parentdc1330aef59827e057ddaaa9db50cd775991ebc7 (diff)
downloadbun-00ae8f79e4c55bf0769a5d0066d2947cf5c52073.tar.gz
bun-00ae8f79e4c55bf0769a5d0066d2947cf5c52073.tar.zst
bun-00ae8f79e4c55bf0769a5d0066d2947cf5c52073.zip
Reflecting new home for bun templates (#1317)
* Reflecting new home for bun templates https://github.com/bun-community/create-templates/ * templates now in root
Diffstat (limited to 'examples/hono/src/index.ts')
-rw-r--r--examples/hono/src/index.ts19
1 files changed, 0 insertions, 19 deletions
diff --git a/examples/hono/src/index.ts b/examples/hono/src/index.ts
deleted file mode 100644
index 801955af3..000000000
--- a/examples/hono/src/index.ts
+++ /dev/null
@@ -1,19 +0,0 @@
-import { Hono } from "hono";
-import { serveStatic } from 'hono/serve-static.bun';
-
-const port = parseInt(process.env.PORT) || 3000;
-
-const app = new Hono();
-
-app.use('/favicon.ico', serveStatic({ path: './public/favicon.ico' }));
-
-app.get("/", (c) => {
- return c.json({ message: "Hello World!" });
-});
-
-console.log(`Running at http://localhost:${port}`);
-
-export default {
- port,
- fetch: app.fetch
-};