1
0
mirror of https://github.com/amir20/dozzle.git synced 2025-12-21 21:33:18 +01:00

Adds pprof

This commit is contained in:
Amir Raminfar
2020-12-13 16:34:18 -08:00
parent 928884815b
commit f306da7ef8

View File

@@ -60,6 +60,7 @@ func createRouter(h *handler) *mux.Router {
s.HandleFunc("/api/logs", h.fetchLogsBetweenDates)
s.HandleFunc("/api/events/stream", h.streamEvents)
s.HandleFunc("/version", h.version)
s.PathPrefix("/debug/pprof/").Handler(http.DefaultServeMux)
s.PathPrefix("/").Handler(http.StripPrefix(base, http.HandlerFunc(h.index)))
return r
}