diff --git a/README.md b/README.md index a0c06e48..60967d3a 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: