Skip to content

Commit

Permalink
show promise and callback example
Browse files Browse the repository at this point in the history
  • Loading branch information
Carmine DiMascio committed Nov 29, 2019
1 parent 8acc597 commit 8cb6eeb
Showing 1 changed file with 6 additions and 0 deletions.
6 changes: 6 additions & 0 deletions example/app.js
Expand Up @@ -30,6 +30,12 @@ new OpenApiValidator({
// ApiKeyAuth: (req, scopes, schema) => true,
// },
})
// Use Callback
// .install(app, (err, app) => {
// if (err) {
// return console.error(err);
// }
// Use Promise
.install(app)
.then(app => {
let id = 3;
Expand Down

0 comments on commit 8cb6eeb

Please sign in to comment.