Nuxt/examples/composables/use-fetch/server/api/[...hello].ts

5 lines
121 B
TypeScript
Raw Normal View History

export default defineEventHandler(event => ({
path: '/api/' + event.context.params.hello,
query: useQuery(event)
}))