From 62456fad9753774557eb3ac22d6e8d14f6a1c43f Mon Sep 17 00:00:00 2001 From: Thomas Cravey Date: Sat, 16 Aug 2025 19:22:11 -0500 Subject: [PATCH] fix(build): remove duplicate handleSummarizerUI; finalize dashboard JS string concatenation --- internal/httpapi/server.go | 12 +----------- 1 file changed, 1 insertion(+), 11 deletions(-) diff --git a/internal/httpapi/server.go b/internal/httpapi/server.go index 5741ca2..a9d3d75 100644 --- a/internal/httpapi/server.go +++ b/internal/httpapi/server.go @@ -464,17 +464,7 @@ func (s *Server) handleInfo(w http.ResponseWriter, r *http.Request) { } // Summarizer simple page placeholder (will reuse existing summarizer flow) -func (s *Server) handleSummarizerUI(w http.ResponseWriter, r *http.Request) { - if s.AuthToken != "" { - if c, err := r.Cookie("auth_token"); err != nil || c.Value != s.AuthToken { - http.Redirect(w, r, "/login", http.StatusFound) - return - } - } - w.Header().Set("Content-Type", "text/html; charset=utf-8") - page := `Summarizer ยท sojuboy

On-demand summarization

` - _, _ = w.Write([]byte(page)) -} +// removed duplicate handleSummarizerUI definition (consolidated earlier) // SSE stream of new messages for a channel func (s *Server) handleStream(w http.ResponseWriter, r *http.Request) {