Skip to content

Commit 1b5e746

Browse files
author
Ace Nassri
authored
Tips: add region tags (#696)
* Add terminate region tag * Massage terminate region tag
1 parent 349b4b7 commit 1b5e746

File tree

1 file changed

+5
-0
lines changed

1 file changed

+5
-0
lines changed

functions/helloworld/index.js

+5
Original file line numberDiff line numberDiff line change
@@ -38,21 +38,26 @@ exports.helloGET = (req, res) => {
3838
* @param {Object} req Cloud Function request context.
3939
* @param {Object} res Cloud Function response context.
4040
*/
41+
// [START functions_tips_terminate]
4142
exports.helloHttp = (req, res) => {
4243
res.send(`Hello ${req.body.name || 'World'}!`);
4344
};
4445
// [END functions_helloworld_http]
4546

47+
// [END functions_tips_terminate]
48+
4649
// [START functions_helloworld_background]
4750
/**
4851
* Background Cloud Function.
4952
*
5053
* @param {object} event The Cloud Functions event.
5154
* @param {function} callback The callback function.
5255
*/
56+
// [START functions_tips_terminate]
5357
exports.helloBackground = (event, callback) => {
5458
callback(null, `Hello ${event.data.name || 'World'}!`);
5559
};
60+
// [END functions_tips_terminate]
5661
// [END functions_helloworld_background]
5762

5863
// [START functions_helloworld_pubsub]

0 commit comments

Comments
 (0)