0e278ae3 by astaxie

beego:format the admin print route

1 parent e38a23b3
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
......
Styling with Markdown is supported
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!