fix: just use the any route

This commit is contained in:
Derrick Hammer 2023-08-09 03:28:42 -04:00
parent ee17409e12
commit e100429b60
Signed by: pcfreak30
GPG Key ID: C997C339BE476FF2
1 changed files with 0 additions and 4 deletions

View File

@ -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