retest
All checks were successful
continuous-integration/drone/push Build is passing

This commit is contained in:
2023-12-29 10:15:49 +11:00
parent 9983d3e8db
commit 23af62ef44
2 changed files with 4 additions and 3 deletions

View File

@@ -29,7 +29,7 @@ type Replacements map[string]string
var replacements = make(Replacements)
//go:embed www
//go:embed www/*
var staticContent embed.FS
// staticFileServer serves files from the provided fs.FS
@@ -47,7 +47,7 @@ func staticFileServer(content embed.FS) gin.HandlerFunc {
//log.Printf("staticFileServer attempting to load filename '%s'\n", fileName)
// Try to open the file from the embedded FS
file, err := content.Open("www/" + fileName)
file, err := content.Open(fileName)
if err != nil {
c.String(http.StatusNotFound, "File not found")
return