webui: fix ServeSPA to use StripPrefix so FileServer finds assets

This commit is contained in:
2026-07-07 19:12:40 -04:00
parent 38a89328a9
commit 3b5d20c05d
+1 -1
View File
@@ -28,7 +28,7 @@ func ServeSPA() http.Handler {
w.Write(data) w.Write(data)
return return
} }
http.FileServer(http.FS(DistFS)).ServeHTTP(w, r) http.StripPrefix("/", http.FileServer(http.FS(DistFS))).ServeHTTP(w, r)
}) })
} }