From fb92930e7a04911e55800143fa21332b73e41cd1 Mon Sep 17 00:00:00 2001 From: Thomas Cravey Date: Sun, 17 Aug 2025 13:36:37 -0500 Subject: [PATCH] fix(webui): serve embedded static from /static/* correctly (fs.Sub(staticFS, "static")) --- internal/httpapi/server.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/internal/httpapi/server.go b/internal/httpapi/server.go index 2cfa5a4..c31419a 100644 --- a/internal/httpapi/server.go +++ b/internal/httpapi/server.go @@ -64,7 +64,7 @@ func (s *Server) Start(ctx context.Context) error { mux.HandleFunc("/", s.handleUIDash) mux.HandleFunc("/summarizer", s.handleUISummarizer) // Serve embedded static files under /static/ - if sub, err := fs.Sub(staticFS, "."); err == nil { + if sub, err := fs.Sub(staticFS, "static"); err == nil { mux.Handle("/static/", http.StripPrefix("/static/", http.FileServer(http.FS(sub)))) } mux.HandleFunc("/login", s.handleLogin)