Skip to content

Commit

Permalink
找到问题了
Browse files Browse the repository at this point in the history
  • Loading branch information
yoyofx committed Jan 18, 2024
1 parent 82b8ca0 commit cebeab6
Showing 1 changed file with 7 additions and 7 deletions.
14 changes: 7 additions & 7 deletions web/endpoints/swagger.go
Original file line number Diff line number Diff line change
Expand Up @@ -11,14 +11,14 @@ import (
func UseSwaggerUI(router router.IRouterBuilder) {
xlog.GetXLogger("Endpoint").Debug("loaded swagger ui endpoint.")

routeInfoArr := router.GetRouteInfo()
builder := router.GetMvcBuilder()
fmt.Println(builder)
for _, routeInfo := range routeInfoArr {
fmt.Println(routeInfo)
}

router.GET("/swagger.json", func(ctx *context.HttpContext) {
routeInfoArr := router.GetRouteInfo()
builder := router.GetMvcBuilder()
fmt.Println(builder)
for _, routeInfo := range routeInfoArr {
fmt.Println(routeInfo)
}

swaggerJson := `{
"swagger": "2.0",
"info": {
Expand Down

0 comments on commit cebeab6

Please sign in to comment.