Stop setting content-type twice
This commit is contained in:
@@ -90,7 +90,6 @@ func NewServer(cfg config.FrontendConfig, hs *honeypot.HoneypotServer, store sto
|
||||
r.Get("/*", s.IndexHandler("web/vue-frontend/dist"))
|
||||
r.Get("/stream", s.HandlerAttemptStream)
|
||||
r.Route("/api", func(r chi.Router) {
|
||||
r.Use(middleware.SetHeader("Content-Type", "application/json"))
|
||||
r.Get("/stats", s.HandlerStats)
|
||||
r.Get("/stream", s.HandlerAttemptStream)
|
||||
r.Get("/query", s.HandlerQuery)
|
||||
|
Reference in New Issue
Block a user