REST API, forms improvement #30

Merged
amigan merged 8 commits from rest into trunk 2024-11-10 14:46:27 -05:00
Showing only changes of commit e97c9ced0e - Show all commits

View file

@ -4,14 +4,9 @@
package server
import (
"net/http/pprof"
"github.com/go-chi/chi/v5/middleware"
)
func (s *Server) installPprof() {
r := s.r
r.HandleFunc("/debug/pprof/", pprof.Index)
r.HandleFunc("/debug/pprof/cmdline", pprof.Cmdline)
r.HandleFunc("/debug/pprof/profile", pprof.Profile)
r.HandleFunc("/debug/pprof/symbol", pprof.Symbol)
r.HandleFunc("/debug/pprof/trace", pprof.Trace)
s.r.Mount("/debug", middleware.Profiler())
}