feat: Add healtcheck endpoint

This commit is contained in:
2023-03-04 23:22:36 +01:00
parent d1f67fbdb4
commit 02175499da
+3
View File
@@ -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")