implement HEAD /health (#688)
Co-authored-by: 饺子w (Yumechi) <yume@yumechi.jp>
This commit is contained in:
parent
a58b0be362
commit
58084c8dea
|
|
@ -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)})
|
||||||
|
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue