mirror of
https://github.com/astaxie/beego.git
synced 2024-11-25 13:40:54 +00:00
beego:format the admin print route
This commit is contained in:
parent
e38a23b30e
commit
0e278ae358
2
admin.go
2
admin.go
@ -122,6 +122,8 @@ func listConf(rw http.ResponseWriter, r *http.Request) {
|
|||||||
case "router":
|
case "router":
|
||||||
fmt.Fprintln(rw, "Print all router infomation:")
|
fmt.Fprintln(rw, "Print all router infomation:")
|
||||||
for method, t := range BeeApp.Handlers.routers {
|
for method, t := range BeeApp.Handlers.routers {
|
||||||
|
fmt.Fprintln(rw)
|
||||||
|
fmt.Fprintln(rw)
|
||||||
fmt.Fprintln(rw, " Method:", method)
|
fmt.Fprintln(rw, " Method:", method)
|
||||||
printTree(rw, t)
|
printTree(rw, t)
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user