diff --git a/main.go b/main.go index e7f9fca..7f8ddb3 100644 --- a/main.go +++ b/main.go @@ -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)