Handle HEAD method for healthcheck endpoint (#525)
This commit is contained in:
committed by
GitHub
parent
50bb20ad58
commit
36a2e181aa
@@ -159,6 +159,7 @@ func routerEngine() *gin.Engine {
|
||||
r.POST(PushConf.API.PushURI, pushHandler)
|
||||
r.GET(PushConf.API.MetricURI, metricsHandler)
|
||||
r.GET(PushConf.API.HealthURI, heartbeatHandler)
|
||||
r.HEAD(PushConf.API.HealthURI, heartbeatHandler)
|
||||
r.GET("/version", versionHandler)
|
||||
r.GET("/", rootHandler)
|
||||
|
||||
|
||||
Reference in New Issue
Block a user