Skip to content

Commit

Permalink
bugfix/docs-use-relative-schema-path (#235)
Browse files Browse the repository at this point in the history
removed the hardcoded "window.location.origin" and now use the relative path for loading the swagger docs
  • Loading branch information
ndortega authored Nov 29, 2024
1 parent 94af0f7 commit 4d4d738
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/autodoc.jl
Original file line number Diff line number Diff line change
Expand Up @@ -442,7 +442,7 @@ function swaggerhtml(schemapath::String, docspath::String) :: HTTP.Response
<script>
window.onload = () => {
window.ui = SwaggerUIBundle({
url: window.location.origin + "$schemapath",
url: "$schemapath",
dom_id: '#swagger-ui',
});
};
Expand Down

0 comments on commit 4d4d738

Please sign in to comment.