BillionMail gives you open-source MailServer, NewsLetter, Email Marketing — fully self-hosted, dev-friendly, and free from monthly fees. Join the discord: https://discord.gg/asfXzBUhZr
Set Swagger UI Template.
Jackfc19bcaa6776
diff --git a/core/internal/cmd/cmd.go b/core/internal/cmd/cmd.goindex cd2ea9ce..2d4445f4 100644--- a/core/internal/cmd/cmd.go+++ b/core/internal/cmd/cmd.go@@ -302,6 +302,18 @@ var (s.SetHTTPSPort(gconv.Int(httpsPort))}+ s.SetSwaggerUITemplate(`<!doctype html>+<html lang="en">+ <head>+ <meta charset="UTF-8" />+ <title>openAPI UI</title>+ </head>+ <body>+ <div id="openapi-ui-container" spec-url="{SwaggerUIDocUrl}" theme="light"></div>+ <script src="https://cdn.jsdelivr.net/npm/openapi-ui-dist@latest/lib/openapi-ui.umd.js"></script>+ </body>+</html>`)+s.Run()return nil