Parcourir la source

Remove debug handler.

Kelly Norton il y a 8 ans
Parent
commit
2623fc98e5
1 fichiers modifiés avec 1 ajouts et 8 suppressions
  1. 1 8
      web/web.go

+ 1 - 8
web/web.go

@@ -95,14 +95,7 @@ func ListenAndServe(addr string, admin bool, version string, ctx *context.Contex
 		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 {
 		mux.Handle("/admin/", &adminHandler{ctx})
 	}