Browse Source

restore html when load

zu1k 5 years ago
parent
commit
53e5dc4011
1 changed files with 1 additions and 0 deletions
  1. 1 0
      api/router.go

+ 1 - 0
api/router.go

@@ -206,6 +206,7 @@ func Run() {
 }
 
 func loadTemplate() (t *template.Template, err error) {
+	_ = binhtml.RestoreAssets("", "assets/html")
 	t = template.New("")
 	for _, fileName := range binhtml.AssetNames() {
 		data := binhtml.MustAsset(fileName)