mirror of
https://github.com/nuxt/nuxt.git
synced 2024-11-22 13:45:18 +00:00
docs: remove await
in front of useQuery
in example (#3407)
This commit is contained in:
parent
4cfad4d719
commit
ccce543c17
@ -55,7 +55,7 @@ export default async (req: IncomingMessage, res: ServerResponse) => {
|
|||||||
import { useBody, useCookies, useQuery } from 'h3'
|
import { useBody, useCookies, useQuery } from 'h3'
|
||||||
|
|
||||||
export default async (req, res) => {
|
export default async (req, res) => {
|
||||||
const query = await useQuery(req)
|
const query = useQuery(req)
|
||||||
const body = await useBody(req) // only for POST request
|
const body = await useBody(req) // only for POST request
|
||||||
const cookies = useCookies(req)
|
const cookies = useCookies(req)
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user