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
Yusuke Wada f29761e16b
chore: move runtime tests into runtime_tests (#1062)
* chore: move runtime tests into `runtime_tests`

* fixed ci
2023-05-02 21:16:17 +09:00

14 lines
265 B
TypeScript

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