docs: remove await in front of useQuery in example (#3407)

This commit is contained in:
Plat 2022-02-27 17:53:30 +09:00 committed by GitHub
parent 4cfad4d719
commit ccce543c17
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -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)