Nuxt/examples/use-async-data/server/api/hello.js

2 lines
102 B
JavaScript

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