swagger聚合封装

This commit is contained in:
2025-11-28 11:16:21 +08:00
parent 2e273cbded
commit ab7d3de666
2 changed files with 1 additions and 1 deletions

View File

@@ -36,6 +36,7 @@ var Httpclient = g.Client()
func init() {
//s.Use(common.Cors) //中间件验证
//s.EnablePProf() //启用性能分析
Httpserver.SetOpenApiPath("/api.json")
Httpserver.SetDumpRouterMap(true) //关闭打印路由注册信息
Httpserver.BindMiddlewareDefault(ghttp.MiddlewareHandlerResponse)
go Httpserver.Run()