From 02175499da67affa90ec333b7f677600acca1b29 Mon Sep 17 00:00:00 2001 From: Abdussamet Kocak Date: Sat, 4 Mar 2023 23:15:10 +0100 Subject: [PATCH] feat: Add healtcheck endpoint --- internal/api/api.go | 3 +++ 1 file changed, 3 insertions(+) diff --git a/internal/api/api.go b/internal/api/api.go index b3cf4c2..59ad2b0 100644 --- a/internal/api/api.go +++ b/internal/api/api.go @@ -50,6 +50,9 @@ func New(services Services) *fiber.App { ) cacheHeader := fmt.Sprintf("max-age=%0f", (time.Hour * 24).Seconds()) + app.Get("/healthz", func(ctx *fiber.Ctx) error { + return ctx.SendString("OK") + }) app.Get("/diyanet/prayertimes", func(ctx *fiber.Ctx) error { locationID := ctx.Query("location_id")