beego:format the admin print route
Showing
1 changed file
with
3 additions
and
1 deletions
| ... | @@ -122,7 +122,9 @@ func listConf(rw http.ResponseWriter, r *http.Request) { | ... | @@ -122,7 +122,9 @@ func listConf(rw http.ResponseWriter, r *http.Request) { |
| 122 | case "router": | 122 | case "router": |
| 123 | fmt.Fprintln(rw, "Print all router infomation:") | 123 | fmt.Fprintln(rw, "Print all router infomation:") |
| 124 | for method, t := range BeeApp.Handlers.routers { | 124 | for method, t := range BeeApp.Handlers.routers { |
| 125 | fmt.Fprintln(rw, "Method:", method) | 125 | fmt.Fprintln(rw) |
| 126 | fmt.Fprintln(rw) | ||
| 127 | fmt.Fprintln(rw, " Method:", method) | ||
| 126 | printTree(rw, t) | 128 | printTree(rw, t) |
| 127 | } | 129 | } |
| 128 | // @todo print routers | 130 | // @todo print routers | ... | ... |
-
Please register or sign in to post a comment