diff --git a/docs/1.guide/2.event-handler.md b/docs/1.guide/2.event-handler.md index b189f8bd..25e4b79d 100644 --- a/docs/1.guide/2.event-handler.md +++ b/docs/1.guide/2.event-handler.md @@ -80,7 +80,7 @@ app.use( ```js app.use( - defineEventHandlers(async (event) => { + defineEventHandler(async (event) => { return new Promise((resolve) => { setTimeout(() => { resolve({ url: event.node.req.url });