From e100429b60e783f6c7c3ddecab7bb9b4dd599726 Mon Sep 17 00:00:00 2001 From: Derrick Hammer Date: Wed, 9 Aug 2023 03:28:42 -0400 Subject: [PATCH] fix: just use the any route --- main.go | 4 ---- 1 file changed, 4 deletions(-) diff --git a/main.go b/main.go index daea63c..5a2edc0 100644 --- a/main.go +++ b/main.go @@ -73,10 +73,6 @@ func main() { p := pprof.New() - for _, route := range []string{"cmdline", "profile", "symbol", "trace"} { - app.Any("/debug/pprof/"+route, iris.FromStd(p)) - } - app.Any("/debug/pprof /debug/pprof/{action:string}", iris.FromStd(p)) // Serve static files from the embedded directory at the app's root path