This commit is contained in:
6
main.go
6
main.go
@@ -29,7 +29,7 @@ type Replacements map[string]string
|
||||
|
||||
var replacements = make(Replacements)
|
||||
|
||||
//go:embed index.htm
|
||||
//go:embed www
|
||||
var staticContent embed.FS
|
||||
|
||||
// staticFileServer serves files from the provided fs.FS
|
||||
@@ -40,8 +40,8 @@ func staticFileServer(content embed.FS) gin.HandlerFunc {
|
||||
|
||||
// Root request should load index.htm
|
||||
if len(fileName) == 1 {
|
||||
log.Printf("staticFileServer replacing root request with index.htm")
|
||||
fileName = "index.htm"
|
||||
log.Printf("staticFileServer replacing root request with index.html")
|
||||
fileName = "index.html"
|
||||
}
|
||||
|
||||
//log.Printf("staticFileServer attempting to load filename '%s'\n", fileName)
|
||||
|
Reference in New Issue
Block a user