mirror of
https://github.com/honojs/hono.git
synced 2024-12-01 10:51:01 +00:00
f29761e16b
* chore: move runtime tests into `runtime_tests` * fixed ci
14 lines
265 B
TypeScript
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
|