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) <[email protected]>
  • Loading branch information
moinologics and eternal-flame-AD authored Sep 22, 2024
1 parent a58b0be commit 58084c8
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 58084c8

Please sign in to comment.