Use bindata to embed UI assets

This commit is contained in:
Deluan
2020-01-22 18:35:44 -05:00
parent ed31b6fa31
commit 50d89760e2
5 changed files with 41 additions and 13 deletions
+13
View File
@@ -0,0 +1,13 @@
// +build !embed
package assets
import (
"net/http"
"github.com/cloudsonic/sonic-server/consts"
)
func AssetFile() http.FileSystem {
return http.Dir(consts.UIAssetsLocalPath)
}