From 5f72582c929e2a958c6451f5a1bb3c663272e357 Mon Sep 17 00:00:00 2001 From: profitroll Date: Fri, 14 Apr 2023 14:01:53 +0200 Subject: [PATCH] Added GET /check --- holochecker_api.go | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/holochecker_api.go b/holochecker_api.go index 5fba39a..026d5e3 100644 --- a/holochecker_api.go +++ b/holochecker_api.go @@ -48,6 +48,11 @@ func getAvatar(ctx *gin.Context) { func main() { router := gin.Default() router.GET("/avatars/:id", getAvatar) + router.GET("/check", func(ctx *gin.Context) { + ctx.JSON(http.StatusOK, gin.H{ + "detail": "I'm alright, thank you", + }) + }) host := os.Getenv("HOST") port := os.Getenv("PORT") if host == "" {