support custom url for health URI. (#302)
* support custom url for health URI. Signed-off-by: Bo-Yi Wu <appleboy.tw@gmail.com> * fix readme Signed-off-by: Bo-Yi Wu <appleboy.tw@gmail.com>
This commit is contained in:
@@ -118,7 +118,7 @@ func routerEngine() *gin.Engine {
|
||||
r.GET(PushConf.API.SysStatURI, sysStatsHandler)
|
||||
r.POST(PushConf.API.PushURI, pushHandler)
|
||||
r.GET(PushConf.API.MetricURI, metricsHandler)
|
||||
r.GET("/healthz", heartbeatHandler)
|
||||
r.GET(PushConf.API.HealthURI, heartbeatHandler)
|
||||
r.GET("/version", versionHandler)
|
||||
r.GET("/", rootHandler)
|
||||
|
||||
|
||||
Reference in New Issue
Block a user