tools/module/gitea/assets/swagger/swagger-initializer-custom.js
2022-09-09 16:05:46 +01:00

22 lines
592 B
JavaScript

window.onload = function() {
//<editor-fold desc="Changeable Configuration Block">
// the following lines will be replaced by docker/configurator, when it runs in a docker-container
window.ui = SwaggerUIBundle({
urls: window.loadUrls,
"urls.primaryName": window.loadMain, // default document (if other than the first)
dom_id: '#swagger-ui',
deepLinking: true,
presets: [
SwaggerUIBundle.presets.apis,
SwaggerUIStandalonePreset
],
plugins: [
SwaggerUIBundle.plugins.DownloadUrl
],
layout: "StandaloneLayout"
});
//</editor-fold>
};