Skip to content

Commit

Permalink
chore(examples): provide event in defineEventHandler function (#2788
Browse files Browse the repository at this point in the history
)
  • Loading branch information
iiio2 authored Oct 15, 2024
1 parent 3da1cf8 commit 465b816
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion examples/api-routes/api/test.post.ts
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
export default defineEventHandler(async () => {
export default defineEventHandler(async (event) => {
const body = await readBody(event);
return {
message: "Test post handler",
Expand Down

0 comments on commit 465b816

Please sign in to comment.