terraform-provider-google/google/test-fixtures/cloudfunctions/http_trigger.js

10 lines
251 B
JavaScript
Raw Normal View History

/**
* 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("Hello ${req.body.name || 'World'}!");
};