fix: just use the any route
This commit is contained in:
parent
ee17409e12
commit
e100429b60
4
main.go
4
main.go
|
@ -73,10 +73,6 @@ func main() {
|
||||||
|
|
||||||
p := pprof.New()
|
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))
|
app.Any("/debug/pprof /debug/pprof/{action:string}", iris.FromStd(p))
|
||||||
|
|
||||||
// Serve static files from the embedded directory at the app's root path
|
// Serve static files from the embedded directory at the app's root path
|
||||||
|
|
Loading…
Reference in New Issue