This commit is contained in:
ziming 2025-03-26 16:30:27 +08:00
parent 6dcb6f1b38
commit 10852fac3b
1 changed files with 2 additions and 2 deletions

View File

@ -29,9 +29,9 @@ func NewHTTPServer(
) *http.Server { ) *http.Server {
//构建 server //构建 server
srv := buildHTTPServer(c, accessLogger, log) 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") return ctx.String(http2.StatusOK, "pong")
}) })