Skip to content

Commit

Permalink
docs: fix deprecated function in routing example (#816)
Browse files Browse the repository at this point in the history
Changed deprecated ```useBody()``` to ```readBody()```.

fixes: #789
  • Loading branch information
pschnyder authored and pi0 committed Jan 16, 2023
1 parent 9979bb6 commit 8eb2f9c
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion docs/content/1.guide/1.introduction/3.routing.md
Original file line number Diff line number Diff line change
Expand Up @@ -39,7 +39,7 @@ export default eventHandler(async event => {
```js
// routes/user.post.ts
export default eventHandler(async event => {
const body = await useBody(event)
const body = await readyBody(event)
// TODO: Handle body and update user
return `User updated!`
})
Expand Down

0 comments on commit 8eb2f9c

Please sign in to comment.