Skip to content

Commit

Permalink
docs: update docs for new version
Browse files Browse the repository at this point in the history
  • Loading branch information
metcoder95 committed Sep 27, 2022
1 parent 10bf649 commit 85196ac
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -59,7 +59,7 @@ const validator = new Ajv({});
const bodyValidator = new Ajv({});
const headersValidator = new Ajv({});

app.register(splitValidator, { defaultValidator: validator });
await app.register(splitValidator, { defaultValidator: validator });

app.post('/', {
config: {
Expand All @@ -84,7 +84,7 @@ const validator = new Ajv({});
const bodyValidator = new Ajv({});
const headersValidator = new Ajv({});

app.register(splitValidator, { defaultValidator: validator });
await app.register(splitValidator, { defaultValidator: validator });

app.post('/', {
config: {
Expand Down

0 comments on commit 85196ac

Please sign in to comment.