nodejs/cloud-function-hello-world/index.js (4 lines of code) (raw):

const functions = require('@google-cloud/functions-framework'); // Register an HTTP function with the Functions Framework that will be executed // when you make an HTTP request to the deployed function's endpoint. functions.http('helloHttp', (req, res) => { res.send('Hello World!'); });