What does this Hono program print?

from Hono
Hono 4.13.5 / Node 24 / TypeScript 6 beginner 2 min

What does this Hono program print?

TypeScript
import { Hono } from 'hono'

const events: string[] = []
const app = new Hono()

app.use(async (c, next) => {
  events.push('outer:start')
  await next()
  events.push('outer:end')
})

app.get('/', (c) => {
  events.push('handler')
  return c.text('ok')
})

await app.request('/')
console.log(events.join(' > '))
Open in playground
Report an error