Skip to content

Commit

Permalink
implement HEAD /health (#688)
Browse files Browse the repository at this point in the history
Co-authored-by: 饺子w (Yumechi) <yume@yumechi.jp>
  • Loading branch information
moinologics and eternal-flame-AD committed Oct 16, 2024
1 parent 4c2aad5 commit ebb2a61
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion router/router.go
Original file line number Diff line number Diff line change
Expand Up @@ -104,7 +104,7 @@ func Create(db *database.GormDatabase, vInfo *model.VersionInfo, conf *config.Co

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

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

Expand Down

0 comments on commit ebb2a61

Please sign in to comment.