This commit is contained in:
1 parent
38076b6126
commit
675744ad74
1 file changed
+2
-2
@@ -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)
|
||||
|
||||
Reference in new issue
Block a user