Skip to content

Commit 6bfa02e

Browse files
author
Kenneth Rosario
authored
chore: update README.md to use ff declarative signature (#512)
1 parent b383a2b commit 6bfa02e

File tree

1 file changed

+4
-2
lines changed

1 file changed

+4
-2
lines changed

README.md

+4-2
Original file line numberDiff line numberDiff line change
@@ -87,9 +87,11 @@ npm install @google-cloud/functions-framework
8787
1. Create an `index.js` file with the following contents:
8888

8989
```js
90-
exports.helloWorld = (req, res) => {
90+
const functions = require('@google-cloud/functions-framework');
91+
92+
functions.http('helloWorld', (req, res) => {
9193
res.send('Hello, World');
92-
};
94+
});
9395
```
9496

9597
1. Now install the Functions Framework:

0 commit comments

Comments
 (0)