Replies: 1 comment 1 reply
-
app.get('*', async (c, next) => {
console.log('before')
await next()
console.log('after')
})
app.get('/', (c) => {
console.log('from handler')
return c.text('Hello')
}) then, it will print the following
|
Beta Was this translation helpful? Give feedback.
1 reply
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
I saw
await next()
being used in the docs but couldn't find any info about when and why it should be used. Does anyone know?Beta Was this translation helpful? Give feedback.
All reactions