From 20c48b171225e8f57deb775d8dad8a77b955fae1 Mon Sep 17 00:00:00 2001 From: John Guo Date: Wed, 23 Mar 2022 14:46:56 +0800 Subject: [PATCH] change build-in swagger ui to public cdn --- net/ghttp/ghttp_server.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/net/ghttp/ghttp_server.go b/net/ghttp/ghttp_server.go index ead149e35..51f6aec83 100644 --- a/net/ghttp/ghttp_server.go +++ b/net/ghttp/ghttp_server.go @@ -126,7 +126,7 @@ func (s *Server) Start() error { // Swagger UI. if s.config.SwaggerPath != "" { swaggerui.Init() - s.AddStaticPath(s.config.SwaggerPath, swaggerUIPackedPath) + //s.AddStaticPath(s.config.SwaggerPath, swaggerUIPackedPath) s.BindHookHandler(s.config.SwaggerPath+"/*", HookBeforeServe, s.swaggerUI) s.Logger().Infof( ctx,