aboutsummaryrefslogtreecommitdiffhomepage
path: root/cmd/mbf/internal/pkgsite/ui/ui.go
diff options
context:
space:
mode:
authorOphestra <cat@gensokyo.uk>2026-09-15 00:06:21 +0900
committerOphestra <cat@gensokyo.uk>2026-09-15 00:06:21 +0900
commit834db962958652502aba88362dbe91df2ee618ee (patch)
tree9c06fbcab83ad56e2d90f24a8d2cf016c6c1d005 /cmd/mbf/internal/pkgsite/ui/ui.go
parentcce7a996b06e516f5afcd41d2d67c2392000b6ab (diff)
cmd/mbf: rename pkgsite
This name is less ambiguous than pkgserver. Signed-off-by: Ophestra <cat@gensokyo.uk>
Diffstat (limited to 'cmd/mbf/internal/pkgsite/ui/ui.go')
-rw-r--r--cmd/mbf/internal/pkgsite/ui/ui.go9
1 files changed, 9 insertions, 0 deletions
diff --git a/cmd/mbf/internal/pkgsite/ui/ui.go b/cmd/mbf/internal/pkgsite/ui/ui.go
new file mode 100644
index 00000000..3fc0d89c
--- /dev/null
+++ b/cmd/mbf/internal/pkgsite/ui/ui.go
@@ -0,0 +1,9 @@
+// Package ui holds the static web UI.
+package ui
+
+import "net/http"
+
+// Register arranges for mux to serve the embedded frontend.
+func Register(mux *http.ServeMux) {
+ mux.Handle("GET /", http.FileServer(http.FS(static)))
+}