change build-in swagger ui to public cdn

This commit is contained in:
John Guo
2022-03-23 14:46:56 +08:00
parent ee16b6df88
commit 20c48b1712

View File

@ -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,