Skip to content

Commit

Permalink
docs: add auth property to example
Browse files Browse the repository at this point in the history
  • Loading branch information
ojoanalogo committed Nov 9, 2020
1 parent 4160b14 commit 3de36cc
Showing 1 changed file with 6 additions and 1 deletion.
7 changes: 6 additions & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -72,7 +72,12 @@ const redocOptions: RedocOptions = {
},
sortPropsAlphabetically: true,
hideDownloadButton: false,
hideHostname: false
hideHostname: false,
auth: {
enabled: true,
user: 'admin',
password: '123'
}
};
// Instead of using SwaggerModule.setup() you call this module
await RedocModule.setup('/docs', app, document, redocOptions);
Expand Down

0 comments on commit 3de36cc

Please sign in to comment.