Nuxt/examples/composables/use-async-data/server/api/hello/[slug].ts
2022-10-13 16:36:59 +02:00

2 lines
130 B
TypeScript

export default defineEventHandler(event => `Hello world (${event.req.url.substr(1)}) (Generated at ${new Date().toUTCString()})`)