This commit is contained in:
coward 2024-06-05 12:07:59 +08:00
parent 19e3df80e7
commit 1bc4e7869a
2 changed files with 15 additions and 2 deletions

11
.gitignore vendored
View File

@ -19,7 +19,15 @@
# vendor/ # vendor/
.idea .idea
logs logs
web web/assets
web/static
web/*.ico
web/*.gz
web/*.br
web/*.html
web/*.svg
web/*.json
# Go workspace file # Go workspace file
go.work go.work
@ -27,4 +35,3 @@ wg.db
wg0.conf wg0.conf
*.db *.db
*.yaml *.yaml

6
web/static.go Normal file
View File

@ -0,0 +1,6 @@
package web
import "embed"
//go:embed index.html logo.svg favicon.ico platform-config.json static assets
var Static embed.FS