From ea1b37010bfbdf4976168af3bd5dff9623006bdf Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Torjus=20H=C3=A5kestad?= Date: Sat, 10 Apr 2021 13:19:46 +0200 Subject: [PATCH] Move stream beneath api endpoint --- web/server.go | 1 + 1 file changed, 1 insertion(+) diff --git a/web/server.go b/web/server.go index 93ef00f..79a29f6 100644 --- a/web/server.go +++ b/web/server.go @@ -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