From 7d49f74836b000928f74b7d5c23fd3297d43c7d8 Mon Sep 17 00:00:00 2001 From: "@beer" <47961062+iiio2@users.noreply.github.com> Date: Sat, 12 Oct 2024 18:36:24 +0600 Subject: [PATCH] chore(examples): provide `event` in `defineEventHandler` function --- examples/api-routes/api/test.post.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/examples/api-routes/api/test.post.ts b/examples/api-routes/api/test.post.ts index 04bdd4d4a9..e26a13ca3e 100644 --- a/examples/api-routes/api/test.post.ts +++ b/examples/api-routes/api/test.post.ts @@ -1,4 +1,4 @@ -export default defineEventHandler(async () => { +export default defineEventHandler(async (event) => { const body = await readBody(event); return { message: "Test post handler",