blob: 0e3e7ba80c3c415464aafc73fe3981fb2df9ee91 (
plain)
1
2
3
4
5
6
7
8
9
10
11
|
export default async event => {
// you can use ES7 with async/await and even TypeScript in your functions :)
await new Promise(r => setTimeout(r, 50))
return {
data: {
message: `Hello ${event.data.name || 'World'}`
}
}
}
|