mirror of
https://github.com/mailcow/mailcow-dockerized.git
synced 2024-12-10 10:40:15 +02:00
20 lines
450 B
JavaScript
20 lines
450 B
JavaScript
|
window.onload = function() {
|
||
|
// Begin Swagger UI call region
|
||
|
const ui = SwaggerUIBundle({
|
||
|
urls: [{url: "/api/openapi.yaml", name: "mailcow API"}],
|
||
|
dom_id: '#swagger-ui',
|
||
|
deepLinking: true,
|
||
|
presets: [
|
||
|
SwaggerUIBundle.presets.apis,
|
||
|
SwaggerUIStandalonePreset
|
||
|
],
|
||
|
plugins: [
|
||
|
SwaggerUIBundle.plugins.DownloadUrl
|
||
|
],
|
||
|
layout: "StandaloneLayout"
|
||
|
});
|
||
|
// End Swagger UI call region
|
||
|
|
||
|
window.ui = ui;
|
||
|
};
|