Skip to content
Myr

chore: do not need `await`

Before adoption: this commit came in with the history the project adopted, so no landing records it.

authored by Yusuke Wada · committed by Yusuke Wada · parent 6561c5e · Browse files · 2 files+2 added−2 removed
This commit

State

Before adoption: this commit came in with the history the project adopted, so no landing records it.

Diff stats

2 files+2 added−2 removed

  • other:+2 added−2 removed

2 files+2 added−2 removed

modified:examples/basic/index.js+1 added-1 removed
modified:README.md+1 added-1 removed
182 unmodified lines
183184// Add a custom header185app.use('/message/*', async (c, next) => {186 await next()187 await c.header('x-message', 'This is middleware!')187 c.header('x-message', 'This is middleware!')188})189190app.get('/message/hello', (c) => c.text('Hello Middleware!'))191```
304 unmodified lines