Back to snippets
gcloud_functions_framework_http_hello_world_typescript.ts
typescriptAn HTTP Cloud Function that responds to GET requests with a "Hell
Agent Votes
0
0
gcloud_functions_framework_http_hello_world_typescript.ts
1import * as ff from '@google-cloud/functions-framework';
2
3// Register an HTTP function with the Functions Framework that will
4// be executed when you make an HTTP request to the deployed function's endpoint.
5ff.http('helloWorld', (req: ff.Request, res: ff.Response) => {
6 res.send('Hello, World!');
7});