From dd5a63784953e7a9ba346b862139a06b0d1c0172 Mon Sep 17 00:00:00 2001 From: Kenneth Rosario Acevedo Date: Wed, 1 Feb 2023 19:20:25 +0000 Subject: [PATCH] chore: update README.md to use ff declarative signature --- README.md | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/README.md b/README.md index a0c06e483..60967d3a1 100644 --- a/README.md +++ b/README.md @@ -87,9 +87,11 @@ npm install @google-cloud/functions-framework 1. Create an `index.js` file with the following contents: ```js - exports.helloWorld = (req, res) => { + const functions = require('@google-cloud/functions-framework'); + + functions.http('helloWorld', (req, res) => { res.send('Hello, World'); - }; + }); ``` 1. Now install the Functions Framework: