summaryrefslogtreecommitdiff
path: root/web/embed.go
diff options
context:
space:
mode:
authorPeter Stone <thepeterstone@gmail.com>2026-02-24 02:01:24 +0000
committerPeter Stone <thepeterstone@gmail.com>2026-02-24 02:01:24 +0000
commit135d8eb1e9612ede642e5341ccd865f72bab3869 (patch)
tree57953da718e558506f27286a0f9896f3037d55a1 /web/embed.go
parentf27d4f7ef3949627c9cb1077f90135a5268b7631 (diff)
Add embedded web UI and wire it into the HTTP server
Serves a lightweight dashboard (HTML/CSS/JS) from an embedded FS at GET /. The JS polls the REST API to display tasks and stream logs via WebSocket. Static files are embedded at build time via web/embed.go. Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
Diffstat (limited to 'web/embed.go')
-rw-r--r--web/embed.go6
1 files changed, 6 insertions, 0 deletions
diff --git a/web/embed.go b/web/embed.go
new file mode 100644
index 0000000..99f142d
--- /dev/null
+++ b/web/embed.go
@@ -0,0 +1,6 @@
+package webui
+
+import "embed"
+
+//go:embed *.html *.css *.js
+var Files embed.FS