1
0
mirror of https://github.com/astaxie/beego.git synced 2024-12-26 01:50:49 +00:00

beego:format the admin print route

This commit is contained in:
astaxie 2014-06-13 00:14:30 +08:00
parent e38a23b30e
commit 0e278ae358

View File

@ -122,7 +122,9 @@ func listConf(rw http.ResponseWriter, r *http.Request) {
case "router":
fmt.Fprintln(rw, "Print all router infomation:")
for method, t := range BeeApp.Handlers.routers {
fmt.Fprintln(rw, "Method:", method)
fmt.Fprintln(rw)
fmt.Fprintln(rw)
fmt.Fprintln(rw, " Method:", method)
printTree(rw, t)
}
// @todo print routers