diff --git a/docs/content/1.guide/1.introduction/3.routing.md b/docs/content/1.guide/1.introduction/3.routing.md index 247a72c1fd..2faa5dc438 100644 --- a/docs/content/1.guide/1.introduction/3.routing.md +++ b/docs/content/1.guide/1.introduction/3.routing.md @@ -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!` })