diff --git a/internal/server/http.go b/internal/server/http.go index 581c086..f48829f 100644 --- a/internal/server/http.go +++ b/internal/server/http.go @@ -29,9 +29,9 @@ func NewHTTPServer( ) *http.Server { //构建 server srv := buildHTTPServer(c, accessLogger, log) - srv.Handle("/debug/pprof/", pprof.NewHandler()) + srv.Handle("/voucher/debug/pprof/", pprof.NewHandler()) - srv.Route("/").GET("ping", func(ctx http.Context) error { + srv.Route("/voucher/").GET("ping", func(ctx http.Context) error { return ctx.String(http2.StatusOK, "pong") })