cloud-foundation-fabric/blueprints/serverless/api-gateway/function/index.js

7 lines
289 B
JavaScript

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('helloGET', (req, res) => {
res.send('Hello World!');
});