terraform-provider-google/google/test-fixtures/cloudfunctions/http_trigger_update.js
Luke Hoban cf4e731236 Add support for updating function code in place (#1781)
Remove ForceNew from the source inputs on function resources, and add support for updating the function in place from a new source bucket+object.
2018-07-18 14:48:00 -07:00

10 lines
253 B
JavaScript

/**
* HTTP Cloud Function.
*
* @param {Object} req Cloud Function request context.
* @param {Object} res Cloud Function response context.
*/
exports.helloGET = function helloGET (req, res) {
res.send("Goodbye ${req.body.name || 'World'}!");
};