1
0
mirror of https://github.com/astaxie/beego.git synced 2024-06-30 16:24:14 +00:00

update the router info

This commit is contained in:
astaxie 2014-08-18 15:00:27 +08:00
parent e566322643
commit e07d780dcf

View File

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