Skip to content

Commit 58084c8

Browse files
implement HEAD /health (#688)
Co-authored-by: 饺子w (Yumechi) <yume@yumechi.jp>
1 parent a58b0be commit 58084c8

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

router/router.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -104,7 +104,7 @@ func Create(db *database.GormDatabase, vInfo *model.VersionInfo, conf *config.Co
104104

105105
ui.Register(g, *vInfo, conf.Registration)
106106

107-
g.GET("/health", healthHandler.Health)
107+
g.Match([]string{"GET", "HEAD"}, "/health", healthHandler.Health)
108108
g.GET("/swagger", docs.Serve)
109109
g.StaticFS("/image", &onlyImageFS{inner: gin.Dir(conf.UploadedImagesDir, false)})
110110

0 commit comments

Comments
 (0)