Add /api/health API

This commit is contained in:
Yang Luo
2023-05-16 21:47:34 +08:00
parent 0217e359e7
commit 3d9b305bbb
3 changed files with 12 additions and 0 deletions

View File

@ -59,3 +59,13 @@ func (c *ApiController) GetVersionInfo() {
c.ResponseOk(versionInfo)
}
// Health
// @Title Health
// @Tag System API
// @Description check if the system is live
// @Success 200 {object} controllers.Response The Response object
// @router /health [get]
func (c *ApiController) Health() {
c.ResponseOk()
}