From b07665da50cdb5bfaac2dc733f100bc521d8e64f Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Andr=C3=A9=20Roth?= Date: Sun, 14 Jun 2026 23:56:53 +0200 Subject: [PATCH] remove swagger --- api/router.go | 30 +++++++++++++++--------------- 1 file changed, 15 insertions(+), 15 deletions(-) diff --git a/api/router.go b/api/router.go index 0c9ccf7d..38de11ab 100644 --- a/api/router.go +++ b/api/router.go @@ -31,21 +31,21 @@ func apiMetricsGet() gin.HandlerFunc { } } -func redirectSwagger(c *gin.Context) { - if c.Request.URL.Path == "/docs/index.html" { - c.Redirect(http.StatusMovedPermanently, "/docs.html") - return - } - if c.Request.URL.Path == "/docs/" { - c.Redirect(http.StatusMovedPermanently, "/docs.html") - return - } - if c.Request.URL.Path == "/docs" { - c.Redirect(http.StatusMovedPermanently, "/docs.html") - return - } - c.Next() -} +// func redirectSwagger(c *gin.Context) { +// if c.Request.URL.Path == "/docs/index.html" { +// c.Redirect(http.StatusMovedPermanently, "/docs.html") +// return +// } +// if c.Request.URL.Path == "/docs/" { +// c.Redirect(http.StatusMovedPermanently, "/docs.html") +// return +// } +// if c.Request.URL.Path == "/docs" { +// c.Redirect(http.StatusMovedPermanently, "/docs.html") +// return +// } +// c.Next() +// } // Router returns prebuilt with routes http.Handler func Router(c *ctx.AptlyContext) http.Handler {