ping
This commit is contained in:
parent
6dcb6f1b38
commit
10852fac3b
|
|
@ -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")
|
||||
})
|
||||
|
||||
|
|
|
|||
Loading…
Reference in New Issue