Skip to content

Commit 33bdcf5

Browse files
authored
refactor: Remove functions_tips_terminate_node8 (#1483)
1 parent 9dc0fa0 commit 33bdcf5

1 file changed

Lines changed: 0 additions & 16 deletions

File tree

functions/node8/index.js

Lines changed: 0 additions & 16 deletions
Original file line numberDiff line numberDiff line change
@@ -20,22 +20,6 @@ const fetch = require('node-fetch');
2020
// [END functions_background_promise_node8]
2121
// [END functions_background_async]
2222

23-
/**
24-
* HTTP Cloud Function (same signature as other Node runtimes)
25-
*
26-
* @param {Object} req Cloud Function request context.
27-
* More info: https://expressjs.com/en/api.html#req
28-
* @param {Object} res Cloud Function response context.
29-
* More info: https://expressjs.com/en/api.html#res
30-
*/
31-
// [START functions_tips_terminate_node8]
32-
const escapeHtml = require('escape-html');
33-
34-
exports.helloHttp = (req, res) => {
35-
res.send(`Hello ${escapeHtml(req.query.name || req.body.name || 'World')}!`);
36-
};
37-
// [END functions_tips_terminate_node8]
38-
3923
// [START functions_tips_infinite_retries_node8]
4024
/**
4125
* Background Cloud Function that only executes within a certain time

0 commit comments

Comments
 (0)