0
0
mirror of https://github.com/honojs/hono.git synced 2024-12-01 10:51:01 +00:00
hono/runtime_tests/wrangler/index.ts

14 lines
265 B
TypeScript
Raw Normal View History

import { env } from '../../src/adapter'
import { Hono } from '../../src/hono'
const app = new Hono()
app.get('/', (c) => c.text('Hello Wrangler!'))
app.get('/env', (c) => {
const { NAME } = env<{ NAME: string }>(c)
return c.text(NAME)
})
export default app