fix path of static file
All checks were successful
continuous-integration/drone/push Build is passing

This commit is contained in:
2024-01-05 11:26:38 +11:00
parent 38076b6126
commit 675744ad74

View File

@@ -15,7 +15,6 @@ import (
"smt/middlewares"
"smt/models"
"smt/utils"
"strings"
"syscall"
"time"
@@ -61,7 +60,8 @@ func staticFileServer(content embed.FS) gin.HandlerFunc {
log.Printf("staticFileServer replacing root request with index.html")
fileName = "www/index.html"
} else {
fileName = strings.TrimLeft(fileName, "/")
//fileName = strings.TrimLeft(fileName, "/")
fileName = "www" + fileName
}
log.Printf("staticFileServer attempting to load filename '%s'\n", fileName)