Browse Source

[Web] Swagger UI: explicitly define used OpenAPI specifications (#4587)

Andri Steiner 3 years ago
parent
commit
b68eae16e5
1 changed files with 1 additions and 1 deletions
  1. 1 1
      data/web/api/index.html

+ 1 - 1
data/web/api/index.html

@@ -39,7 +39,7 @@
     window.onload = function() {
     window.onload = function() {
       // Begin Swagger UI call region
       // Begin Swagger UI call region
       const ui = SwaggerUIBundle({
       const ui = SwaggerUIBundle({
-        url: "/api/openapi.yaml",
+        urls: [{url: "/api/openapi.yaml", name: "mailcow API"}],
         dom_id: '#swagger-ui',
         dom_id: '#swagger-ui',
         deepLinking: true,
         deepLinking: true,
         presets: [
         presets: [