Move stream beneath api endpoint
This commit is contained in:
parent
1e901e2eea
commit
ea1b37010b
@ -90,6 +90,7 @@ func NewServer(cfg config.FrontendConfig, hs *honeypot.HoneypotServer, store sto
|
|||||||
r.Route("/api", func(r chi.Router) {
|
r.Route("/api", func(r chi.Router) {
|
||||||
r.Use(middleware.SetHeader("Content-Type", "application/json"))
|
r.Use(middleware.SetHeader("Content-Type", "application/json"))
|
||||||
r.Get("/stats", s.HandlerStats)
|
r.Get("/stats", s.HandlerStats)
|
||||||
|
r.Get("/stream", s.HandlerAttemptStream)
|
||||||
})
|
})
|
||||||
})
|
})
|
||||||
s.Handler = r
|
s.Handler = r
|
||||||
|
Loading…
Reference in New Issue
Block a user