Skip to content

Commit

Permalink
chore(examples): clarify post handler (#2781)
Browse files Browse the repository at this point in the history
  • Loading branch information
iiio2 authored Oct 8, 2024
1 parent d356758 commit 5960006
Showing 1 changed file with 7 additions and 1 deletion.
8 changes: 7 additions & 1 deletion examples/api-routes/api/test.post.ts
Original file line number Diff line number Diff line change
@@ -1 +1,7 @@
export default defineEventHandler(() => "Test post handler");
export default defineEventHandler(async () => {
const body = await readBody(event);
return {
message: "Test post handler",
body,
};
});

0 comments on commit 5960006

Please sign in to comment.