bugfix
Some checks failed
release-tag / release-image (push) Failing after 56s
build-binaries / build (, amd64, linux) (push) Has been skipped
build-binaries / build (, arm, 7, linux) (push) Has been skipped
build-binaries / build (, arm64, linux) (push) Has been skipped
build-binaries / build (.exe, amd64, windows) (push) Has been skipped
build-binaries / release (push) Has been skipped
Some checks failed
release-tag / release-image (push) Failing after 56s
build-binaries / build (, amd64, linux) (push) Has been skipped
build-binaries / build (, arm, 7, linux) (push) Has been skipped
build-binaries / build (, arm64, linux) (push) Has been skipped
build-binaries / build (.exe, amd64, windows) (push) Has been skipped
build-binaries / release (push) Has been skipped
This commit is contained in:
4
main.go
4
main.go
@@ -413,7 +413,7 @@ func makeID() string {
|
||||
|
||||
// ---- Router ----
|
||||
|
||||
//go:embed web/**
|
||||
//go:embed \/web/**
|
||||
var embedded embed.FS
|
||||
|
||||
func (s *Server) routes() http.Handler {
|
||||
@@ -480,7 +480,7 @@ func (s *Server) routes() http.Handler {
|
||||
mux.HandleFunc("/status", s.handleStatus)
|
||||
|
||||
// Static UI
|
||||
sub, _ := fs.Sub(embedded, "/web")
|
||||
sub, _ := fs.Sub(embedded, "web")
|
||||
mux.Handle("/", http.FileServer(http.FS(sub)))
|
||||
|
||||
return mux
|
||||
|
||||
Reference in New Issue
Block a user