Skip to content

Commit

Permalink
Fix pprof route order.
Browse files Browse the repository at this point in the history
  • Loading branch information
timoreimann authored and traefiker committed Dec 5, 2017
1 parent 523b7f9 commit 41d8863
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion api/debug.go
Original file line number Diff line number Diff line change
Expand Up @@ -38,9 +38,9 @@ func (g DebugHandler) AddRoutes(router *mux.Router) {
fmt.Fprint(w, "\n}\n")
})

router.Methods(http.MethodGet).PathPrefix("/debug/pprof/").HandlerFunc(pprof.Index)
router.Methods(http.MethodGet).PathPrefix("/debug/pprof/cmdline").HandlerFunc(pprof.Cmdline)
router.Methods(http.MethodGet).PathPrefix("/debug/pprof/profile").HandlerFunc(pprof.Profile)
router.Methods(http.MethodGet).PathPrefix("/debug/pprof/symbol").HandlerFunc(pprof.Symbol)
router.Methods(http.MethodGet).PathPrefix("/debug/pprof/trace").HandlerFunc(pprof.Trace)
router.Methods(http.MethodGet).PathPrefix("/debug/pprof/").HandlerFunc(pprof.Index)
}

0 comments on commit 41d8863

Please sign in to comment.