Feat: Support Web frontend

This commit is contained in:
DullJZ
2025-11-14 20:44:26 +08:00
parent af8c8e579a
commit 998e8769ee
4 changed files with 197 additions and 1 deletions
+14
View File
@@ -0,0 +1,14 @@
package webui
import (
"embed"
"io/fs"
)
//go:embed dist
var distFS embed.FS
// GetDistFS 获取嵌入的前端静态文件系统
func GetDistFS() (fs.FS, error) {
return fs.Sub(distFS, "dist")
}