mirror of
https://github.com/lone-cloud/prism
synced 2026-06-03 08:43:10 -07:00
fix /health but for real this time
This commit is contained in:
parent
b4205c5195
commit
6b98fa9ec8
1 changed files with 2 additions and 2 deletions
|
|
@ -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)
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue