Handle HEAD method for healthcheck endpoint (#525)

This commit is contained in:
Yaroslav "Zorg" Zborovsky 2020-06-23 06:17:59 +03:00 committed by GitHub
parent 50bb20ad58
commit 36a2e181aa
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 1 additions and 0 deletions

View File

@ -159,6 +159,7 @@ func routerEngine() *gin.Engine {
r.POST(PushConf.API.PushURI, pushHandler) r.POST(PushConf.API.PushURI, pushHandler)
r.GET(PushConf.API.MetricURI, metricsHandler) r.GET(PushConf.API.MetricURI, metricsHandler)
r.GET(PushConf.API.HealthURI, heartbeatHandler) r.GET(PushConf.API.HealthURI, heartbeatHandler)
r.HEAD(PushConf.API.HealthURI, heartbeatHandler)
r.GET("/version", versionHandler) r.GET("/version", versionHandler)
r.GET("/", rootHandler) r.GET("/", rootHandler)