|
@@ -95,14 +95,7 @@ func ListenAndServe(addr string, admin bool, version string, ctx *context.Contex
|
|
|
fmt.Fprintln(w, "OK")
|
|
fmt.Fprintln(w, "OK")
|
|
|
})
|
|
})
|
|
|
|
|
|
|
|
- mux.HandleFunc("/debug/", func(w http.ResponseWriter, r *http.Request) {
|
|
|
|
|
- w.Header().Set("Content-Type", "text/plain")
|
|
|
|
|
- it := ctx.List([]byte{':' + 1})
|
|
|
|
|
- for it.Next() {
|
|
|
|
|
- fmt.Fprintf(w, "%s %s\n", it.Name(), it.Route().URL)
|
|
|
|
|
- }
|
|
|
|
|
- })
|
|
|
|
|
-
|
|
|
|
|
|
|
+ // TODO(knorton): Remove the admin handler.
|
|
|
if admin {
|
|
if admin {
|
|
|
mux.Handle("/admin/", &adminHandler{ctx})
|
|
mux.Handle("/admin/", &adminHandler{ctx})
|
|
|
}
|
|
}
|