Move stream beneath api endpoint

This commit is contained in:
Torjus Håkestad 2021-04-10 13:19:46 +02:00
parent 1e901e2eea
commit ea1b37010b

View File

@ -90,6 +90,7 @@ func NewServer(cfg config.FrontendConfig, hs *honeypot.HoneypotServer, store sto
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)
})
})
s.Handler = r