Nuxt/examples/use-fetch/server/api/hello.ts

4 lines
80 B
TypeScript
Raw Normal View History

2021-10-11 22:36:50 +00:00
import { useQuery } from 'h3'
export default req => ({ query: useQuery(req) })