refactor: update web UI asset serving and embedding mechanism.

This commit is contained in:
CJACK
2026-02-16 19:58:33 +08:00
parent 190881f13a
commit 888a0e6bff
17 changed files with 150 additions and 749 deletions

View File

@@ -7,9 +7,11 @@ import (
"ds2api/internal/config"
"ds2api/internal/server"
"ds2api/internal/webui"
)
func main() {
webui.EnsureBuiltOnStartup()
app := server.NewApp()
port := strings.TrimSpace(os.Getenv("PORT"))
if port == "" {