From cc610d951e2df2cd5eff3f9b5577f47840e4fa04 Mon Sep 17 00:00:00 2001 From: snowgitea Date: Wed, 1 Jul 2026 17:55:24 +0800 Subject: [PATCH] chore: public/swagger/swagger-initializer.js --- public/swagger/swagger-initializer.js | 20 ++++++++++++++++++++ 1 file changed, 20 insertions(+) create mode 100644 public/swagger/swagger-initializer.js diff --git a/public/swagger/swagger-initializer.js b/public/swagger/swagger-initializer.js new file mode 100644 index 0000000..d9e154d --- /dev/null +++ b/public/swagger/swagger-initializer.js @@ -0,0 +1,20 @@ +window.onload = function() { + // + + // the following lines will be replaced by docker/configurator, when it runs in a docker-container + window.ui = SwaggerUIBundle({ + url: "/swagger/json", + dom_id: '#swagger-ui', + deepLinking: true, + presets: [ + SwaggerUIBundle.presets.apis, + SwaggerUIStandalonePreset + ], + plugins: [ + SwaggerUIBundle.plugins.DownloadUrl + ], + layout: "StandaloneLayout" + }); + + // +};