1
0
espelhamento de https://github.com/astaxie/beego.git sincronizado 2025-09-18 11:22:10 +00:00

update the router info

Esse commit está contido em:
astaxie
2014-08-18 15:00:27 +08:00
commit e07d780dcf

Ver arquivo

@@ -770,7 +770,11 @@ Admin:
if RunMode == "dev" {
var devinfo string
if findrouter {
devinfo = fmt.Sprintf("| % -10s | % -40s | % -16s | % -10s | % -40s |", r.Method, r.URL.Path, timeend.String(), "match", routerInfo.pattern)
if routerInfo != nil {
devinfo = fmt.Sprintf("| % -10s | % -40s | % -16s | % -10s | % -40s |", r.Method, r.URL.Path, timeend.String(), "match", routerInfo.pattern)
} else {
devinfo = fmt.Sprintf("| % -10s | % -40s | % -16s | % -10s |", r.Method, r.URL.Path, timeend.String(), "match")
}
} else {
devinfo = fmt.Sprintf("| % -10s | % -40s | % -16s | % -10s |", r.Method, r.URL.Path, timeend.String(), "notmatch")
}