mirror of
https://github.com/astaxie/beego.git
synced 2025-06-24 03:30:19 +00:00
beego:format the admin print route
This commit is contained in:
4
admin.go
4
admin.go
@ -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
|
||||
|
Reference in New Issue
Block a user