Skip to content

Commit

Permalink
Fix link to OpenAPI documentation, make it work in dev
Browse files Browse the repository at this point in the history
The link was going to the Swaggerhub documentation instead of the local
copy. Also, since the full URL was specified in the initializer, it
wouldn't work in dev.

Fixes #1744
  • Loading branch information
omnicolor committed Oct 30, 2024
1 parent 4828c73 commit 7b15b62
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion public/openapi/swagger-initializer.js
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
window.onload = function() {
window.ui = SwaggerUIBundle({
url: "https://commlink.digitaldarkness.com/openapi.yml",
url: "/openapi.yml",
dom_id: '#swagger-ui',
deepLinking: true,
presets: [
Expand Down
2 changes: 1 addition & 1 deletion resources/views/settings.blade.php
Original file line number Diff line number Diff line change
Expand Up @@ -318,7 +318,7 @@ class="accordion-collapse collapse"
<div class="accordion-body" id="api-keys-table">
<p>
An API token is used to interact directly with
<a href="https://app.swaggerhub.com/apis/omnicolor/Commlink">Commlink's API</a>.
<a href="/openapi/index.html">{{ config('app.name') }}'s API</a>.
If you're not a software developer or don't know
what an API is, this probably isn't something
that you need to use. In fact, unless you are
Expand Down

0 comments on commit 7b15b62

Please sign in to comment.