File tree 1 file changed +5
-0
lines changed
1 file changed +5
-0
lines changed Original file line number Diff line number Diff line change @@ -38,21 +38,26 @@ exports.helloGET = (req, res) => {
38
38
* @param {Object } req Cloud Function request context.
39
39
* @param {Object } res Cloud Function response context.
40
40
*/
41
+ // [START functions_tips_terminate]
41
42
exports . helloHttp = ( req , res ) => {
42
43
res . send ( `Hello ${ req . body . name || 'World' } !` ) ;
43
44
} ;
44
45
// [END functions_helloworld_http]
45
46
47
+ // [END functions_tips_terminate]
48
+
46
49
// [START functions_helloworld_background]
47
50
/**
48
51
* Background Cloud Function.
49
52
*
50
53
* @param {object } event The Cloud Functions event.
51
54
* @param {function } callback The callback function.
52
55
*/
56
+ // [START functions_tips_terminate]
53
57
exports . helloBackground = ( event , callback ) => {
54
58
callback ( null , `Hello ${ event . data . name || 'World' } !` ) ;
55
59
} ;
60
+ // [END functions_tips_terminate]
56
61
// [END functions_helloworld_background]
57
62
58
63
// [START functions_helloworld_pubsub]
You can’t perform that action at this time.
0 commit comments