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

2 lines
102 B
TypeScript
Raw Normal View History

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