diff options
Diffstat (limited to 'cmd/mbf/internal/pkgserver/ui/ui.go')
| -rw-r--r-- | cmd/mbf/internal/pkgserver/ui/ui.go | 9 |
1 files changed, 9 insertions, 0 deletions
diff --git a/cmd/mbf/internal/pkgserver/ui/ui.go b/cmd/mbf/internal/pkgserver/ui/ui.go new file mode 100644 index 00000000..3fc0d89c --- /dev/null +++ b/cmd/mbf/internal/pkgserver/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))) +} |
