Skip to content

Commit

Permalink
fix: load swagger file from relative path
Browse files Browse the repository at this point in the history
  • Loading branch information
mo4islona authored Apr 28, 2021
1 parent 19937f6 commit ba3fd00
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion views/redoc.handlebars
Original file line number Diff line number Diff line change
Expand Up @@ -29,7 +29,7 @@
let themeJSON = '{{{ toJSON data.theme }}}';
if (themeJSON === '') { themeJSON = undefined }
Redoc.init(
'{{ data.docUrl }}',
'./swagger.json',
{
...(themeJSON && {
theme: {
Expand Down

0 comments on commit ba3fd00

Please sign in to comment.