Skip to content

Commit

Permalink
#859 monitor接入标准日志规范
Browse files Browse the repository at this point in the history
  • Loading branch information
tangjiawei committed Dec 18, 2024
1 parent 62417d7 commit f1ac962
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions monitor-server/api/api.go
Original file line number Diff line number Diff line change
Expand Up @@ -413,7 +413,7 @@ func InitHttpServer() {
authRouter.DELETE(funcObj.Url, funcObj.HandlerFunc)
break
}
apiCodeMap[fmt.Sprintf("%s_%s%s", funcObj.Method, models.UrlPrefix, funcObj.Url)] = funcObj.ApiCode
apiCodeMap[fmt.Sprintf("%s_%s%s", funcObj.Method, models.UrlPrefix+"/api/v1", funcObj.Url)] = funcObj.ApiCode
}
authRouterV2 := r.Group(urlPrefix+"/api/v2", user.AuthRequired())
for _, funcObj := range httpHandlerFuncListV2 {
Expand All @@ -435,7 +435,7 @@ func InitHttpServer() {
authRouterV2.DELETE(funcObj.Url, handleFuncList...)
break
}
apiCodeMap[fmt.Sprintf("%s_%s%s", funcObj.Method, models.UrlPrefix, funcObj.Url)] = funcObj.ApiCode
apiCodeMap[fmt.Sprintf("%s_%s%s", funcObj.Method, models.UrlPrefix+"/api/v2", funcObj.Url)] = funcObj.ApiCode
}
r.Run(":" + models.Config().Http.Port)
}
Expand Down

0 comments on commit f1ac962

Please sign in to comment.