// Licensed to the Apache Software Foundation (ASF) under one or more contributor | |
// license agreements; and to You under the Apache License, Version 2.0. | |
/** | |
* Return a simple greeting message for someone. | |
* | |
* @param name A person's name. | |
* @param place Where the person is from. | |
*/ | |
function main(params) { | |
var name = params.name || params.payload || 'stranger'; | |
var place = params.place || 'somewhere'; | |
return {payload: 'Hello, ' + name + ' from ' + place + '!'}; | |
} | |
exports.main = main; | |