fix: directly embedding ui assets (fixes #1135)

This commit is contained in:
Simone Margaritelli 2024-09-27 20:23:57 +02:00
parent ea8e96c285
commit ae466b702a
1646 changed files with 256058 additions and 22 deletions

View file

@ -12,7 +12,7 @@ import (
)
var (
//go:embed ui/dist/ui
//go:embed ui
web embed.FS
)
@ -80,7 +80,7 @@ func (mod *UIModule) Configure() (err error) {
mod.server.Addr = fmt.Sprintf("%s:%d", ip, port)
dist, _ := fs.Sub(web, "ui/dist/ui")
dist, _ := fs.Sub(web, "ui")
mod.server.Handler = http.FileServer(http.FS(dist))
return nil