feat: Add healtcheck endpoint

master
Abdussamet Kocak 3 years ago
parent d1f67fbdb4
commit 02175499da

@ -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")

Loading…
Cancel
Save