fix path of static file
All checks were successful
continuous-integration/drone/push Build is passing
All checks were successful
continuous-integration/drone/push Build is passing
This commit is contained in:
4
main.go
4
main.go
@@ -15,7 +15,6 @@ import (
|
|||||||
"smt/middlewares"
|
"smt/middlewares"
|
||||||
"smt/models"
|
"smt/models"
|
||||||
"smt/utils"
|
"smt/utils"
|
||||||
"strings"
|
|
||||||
"syscall"
|
"syscall"
|
||||||
"time"
|
"time"
|
||||||
|
|
||||||
@@ -61,7 +60,8 @@ func staticFileServer(content embed.FS) gin.HandlerFunc {
|
|||||||
log.Printf("staticFileServer replacing root request with index.html")
|
log.Printf("staticFileServer replacing root request with index.html")
|
||||||
fileName = "www/index.html"
|
fileName = "www/index.html"
|
||||||
} else {
|
} else {
|
||||||
fileName = strings.TrimLeft(fileName, "/")
|
//fileName = strings.TrimLeft(fileName, "/")
|
||||||
|
fileName = "www" + fileName
|
||||||
}
|
}
|
||||||
|
|
||||||
log.Printf("staticFileServer attempting to load filename '%s'\n", fileName)
|
log.Printf("staticFileServer attempting to load filename '%s'\n", fileName)
|
||||||
|
Reference in New Issue
Block a user