Nuxt/examples/composables/use-async-data/server/api/hello/[slug].ts

2 lines
135 B
TypeScript

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