mirror of
https://github.com/aljazceru/signal-cli-rest-api.git
synced 2025-12-19 15:44:28 +01:00
added health check endpoint + fixed logging
* set go-gin to release mode * added health check endpoint * excluded endpoint from logger see #63
This commit is contained in:
@@ -850,3 +850,13 @@ func (a *Api) UpdateProfile(c *gin.Context) {
|
||||
cleanupTmpFiles(avatarTmpPaths)
|
||||
c.Status(http.StatusNoContent)
|
||||
}
|
||||
|
||||
// @Summary API Health Check
|
||||
// @Tags General
|
||||
// @Description Internally used by the docker container to perform the health check.
|
||||
// @Produce json
|
||||
// @Success 204 {string} OK
|
||||
// @Router /v1/health [get]
|
||||
func (a *Api) Health(c *gin.Context) {
|
||||
c.Status(http.StatusNoContent)
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user