From 74a47d145c5fca588ab1e291dcd19ce3034d1c37 Mon Sep 17 00:00:00 2001 From: Jerome Amon Date: Sat, 4 May 2024 20:11:49 +0000 Subject: [PATCH] router: fix swagger endpoint pattern --- api.router.core.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/api.router.core.go b/api.router.core.go index 5546d2b..5548b04 100644 --- a/api.router.core.go +++ b/api.router.core.go @@ -14,6 +14,6 @@ func (api *APIHandler) SetupRoutes(router *httprouter.Router, m *MiddlewareMap) if api.config.OpsEndpointsEnable { api.SetupOpsRoutes(router, m) } - router.GET("/swagger/*", m.public(api.OpsHandlerWrapper(httpswagger.WrapHandler))) + router.GET("/swagger/*any", m.public(api.OpsHandlerWrapper(httpswagger.WrapHandler))) return router }