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

This commit is contained in:
Andri Steiner 2022-05-13 10:40:22 +02:00 committed by GitHub
parent 9a812edee4
commit b68eae16e5
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -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: [