We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent a1e287b commit 09e7fcbCopy full SHA for 09e7fcb
README.md
@@ -248,13 +248,13 @@ Learn how to use CloudEvents in this [guide](docs/cloudevents.md).
248
The Functions Framework also supports an interface that declaritively defines your function signature.
249
250
```js
251
-import * as FunctionsFramework from '@google-cloud/functions-framework';
+const functions = require('@google-cloud/functions-framework');
252
253
-FunctionsFramework.http('hello', async (req, res) => {
+functions.http('hello', async (req, res) => {
254
res.send('Hello, World!');
255
});
256
257
-FunctionsFramework.cloudevent('ce', async (cloudevent) => {
+functions.cloudevent('ce', async (cloudevent) => {
258
res.send('Hello, CloudEvent!');
259
260
```
0 commit comments