v1.2.0: lib: add health lib
Signed-off-by: GnomeZworc <nicolas.boufidjeline@g3e.fr>
This commit is contained in:
parent
3f3fe2ecac
commit
821fc8c3d9
1 changed files with 10 additions and 0 deletions
10
lib/health/isHealth.go
Normal file
10
lib/health/isHealth.go
Normal 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
|
||||||
|
}
|
||||||
Loading…
Add table
Add a link
Reference in a new issue