fix /health but for real this time

This commit is contained in:
Egor 2026-02-09 03:22:38 -08:00
parent b4205c5195
commit 6b98fa9ec8

View file

@ -99,13 +99,13 @@ func (s *Server) setupRoutes() {
r.Use(rateLimitMiddleware(s.cfg.RateLimit))
r.Use(maxBodySizeMiddleware(1 << 20))
r.Get("/health", s.handleHealthCheck)
r.Head("/health", s.handleHealthCheck)
r.Get("/", s.handleIndex)
r.Get("/favicon.ico", func(w http.ResponseWriter, r *http.Request) {
http.Redirect(w, r, "/favicon.webp", http.StatusMovedPermanently)
})
r.Get("/health", s.handleHealthCheck)
integration.RegisterAll(s.integrations, r, s.cfg, s.store, s.logger, authMiddleware)
r.With(authMiddleware(s.cfg.APIKey)).Get("/fragment/apps", s.handleFragmentApps)