implement HEAD /health (#688)

Co-authored-by: 饺子w (Yumechi) <yume@yumechi.jp>
This commit is contained in:
Moin Ahmad 2024-09-22 22:32:48 +05:30 committed by GitHub
parent a58b0be362
commit 58084c8dea
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
1 changed files with 1 additions and 1 deletions

View File

@ -104,7 +104,7 @@ func Create(db *database.GormDatabase, vInfo *model.VersionInfo, conf *config.Co
ui.Register(g, *vInfo, conf.Registration) 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.GET("/swagger", docs.Serve)
g.StaticFS("/image", &onlyImageFS{inner: gin.Dir(conf.UploadedImagesDir, false)}) g.StaticFS("/image", &onlyImageFS{inner: gin.Dir(conf.UploadedImagesDir, false)})