fix static assets (#3816)

This commit is contained in:
im_zhou 2023-11-30 10:59:08 +08:00 committed by GitHub
parent 97d3cf1a3b
commit 6d9e0c20f6
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 1 additions and 3 deletions

View File

@ -46,9 +46,7 @@ type Server struct {
} }
func NewServer(cfg v1.WebServerConfig) (*Server, error) { func NewServer(cfg v1.WebServerConfig) (*Server, error) {
if cfg.AssetsDir != "" {
assets.Load(cfg.AssetsDir) assets.Load(cfg.AssetsDir)
}
addr := net.JoinHostPort(cfg.Addr, strconv.Itoa(cfg.Port)) addr := net.JoinHostPort(cfg.Addr, strconv.Itoa(cfg.Port))
if addr == ":" { if addr == ":" {