瀏覽代碼

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

Andri Steiner 3 年之前
父節點
當前提交
b68eae16e5
共有 1 個文件被更改,包括 1 次插入1 次删除
  1. 1 1
      data/web/api/index.html

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

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