mirror of
https://gitee.com/johng/gf
synced 2026-06-06 02:25:47 +08:00
change build-in swagger ui to public cdn
This commit is contained in:
@ -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,
|
||||
|
||||
Reference in New Issue
Block a user