Skip to content

Commit ed07a09

Browse files
author
Hannes Norda
authored
fix(README): correct name of exported function (#4)
* Update README.md `createAzureFunctionsMiddleware` does not exist, should be replaced with `createAzureFunction`. Fixes #3 * Fix typo in README.md
1 parent 464d924 commit ed07a09

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

README.md

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -45,11 +45,11 @@ and
4545
```js
4646
// ProbotFunction/index.js
4747
const {
48-
createAzureFunctionsMiddleware,
48+
createAzureFunction,
4949
createProbot,
5050
} = require("@probot/adapter-azure-functions");
5151
const app = require("../app");
52-
module.exports = createAzureFunctionsMiddleware(app, {
52+
module.exports = createAzureFunction(app, {
5353
probot: createProbot(),
5454
});
5555
```
@@ -58,9 +58,9 @@ For an example Probot App continuously deployed to Azure Functions, see https://
5858

5959
## How it works
6060

61-
`@probot/adapter-azure-functions` exports everything that [`probot`](https://github.com/probot/probot/#readme) does plus `createAzureFunctionsMiddleware`.
61+
`@probot/adapter-azure-functions` exports everything that [`probot`](https://github.com/probot/probot/#readme) does plus `createAzureFunction`.
6262

63-
`createAzureFunctionsMiddleware` slightly differs from Probot's built-in `createNodeModdleware`, as an Azure function does receives slightly different parameters.
63+
`createAzureFunction` slightly differs from Probot's built-in `createNodeMiddleware`, as an Azure function does receives slightly different parameters.
6464

6565
## License
6666

0 commit comments

Comments
 (0)