improve route dump for package ghttp

This commit is contained in:
John Guo
2021-12-18 12:43:33 +08:00
parent 1215f67aac
commit ad48dc025b

View File

@ -293,7 +293,7 @@ func (s *Server) dumpRouterMap() {
table.SetCenterSeparator("|")
for _, item := range s.GetRoutes() {
item.Middleware = gstr.SubStrFromREx(item.Middleware, ".")
item.Middleware = gstr.Replace(item.Middleware, ",", "\n")
data := make([]string, 0)
if isJustDefaultServerAndDomain {
data = append(