Skip to content

Commit

Permalink
fix: spec
Browse files Browse the repository at this point in the history
  • Loading branch information
martinsaporiti committed Dec 16, 2024
1 parent 665c605 commit 5936bc6
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions api/spec.html
Original file line number Diff line number Diff line change
Expand Up @@ -31,6 +31,8 @@
<script>
window.addEventListener('DOMContentLoaded', () => {
const rapidocEl = document.getElementById('the-doc');
const path = window.location.pathname;
rapidocEl.setAttribute('spec-url', globalThis.origin + path +"/static/docs/api/api.yaml");
rapidocEl["server-url"] = globalThis.origin;
rapidocEl.addEventListener('spec-loaded', () => {
rapidocEl.setApiServer(globalThis.origin);
Expand Down

0 comments on commit 5936bc6

Please sign in to comment.