mirror of
https://github.com/nuxt/nuxt.git
synced 2024-11-11 08:33:53 +00:00
docs: update useBody
comment to reflect usable methods (#4083)
This commit is contained in:
parent
be4a2dea16
commit
0c9d83412c
@ -56,7 +56,7 @@ import { useBody, useCookies, useQuery } from 'h3'
|
||||
|
||||
export default async (req, res) => {
|
||||
const query = useQuery(req)
|
||||
const body = await useBody(req) // only for POST request
|
||||
const body = await useBody(req) // only for POST | PUT | PATCH | DELETE requests
|
||||
const cookies = useCookies(req)
|
||||
|
||||
return { query, body, cookies }
|
||||
|
Loading…
Reference in New Issue
Block a user