mirror of
https://github.com/astaxie/beego.git
synced 2024-12-23 04:10:49 +00:00
update the router info
This commit is contained in:
parent
e566322643
commit
e07d780dcf
@ -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")
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user