v1.2.0: lib: add health lib

Signed-off-by: GnomeZworc <nicolas.boufidjeline@g3e.fr>
This commit is contained in:
GnomeZworc 2024-04-01 19:29:29 +02:00
commit 821fc8c3d9
Signed by: nicolas.boufideline
GPG key ID: 4406BBBF8845D632

10
lib/health/isHealth.go Normal file
View file

@ -0,0 +1,10 @@
package health
import "github.com/labstack/echo/v4"
func IsHealth(c echo.Context) bool {
if c.Request().Method == "GET" && c.Path() == "/health" {
return true
}
return false
}