0
0
mirror of https://github.com/honojs/hono.git synced 2024-11-24 11:07:29 +01:00

chore(benchmark): support for new version

This commit is contained in:
Yusuke Wada 2022-07-06 11:07:43 +09:00
parent 890cc46f78
commit eda96e70fb
2 changed files with 2 additions and 2 deletions

View File

@ -16,4 +16,4 @@ app.get('/user/lookup/username/:username', (c) => {
return c.json({ message: `Hello ${c.req.param('username')}` })
})
serve(app.fire())
serve((req) => app.fetch(req))

View File

@ -16,4 +16,4 @@ app.get('/user/lookup/username/:username', (c) => {
return c.json({ message: `Hello ${c.req.param('username')}` })
})
serve(app.fire())
serve((req) => app.fetch(req))