From 9983d3e8db705e4a2c5f3083284e40a4f885123c Mon Sep 17 00:00:00 2001 From: Nathan Coad Date: Fri, 29 Dec 2023 10:13:33 +1100 Subject: [PATCH] test again --- main.go | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/main.go b/main.go index 5807f46..9936e9e 100644 --- a/main.go +++ b/main.go @@ -41,13 +41,13 @@ 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.html") - fileName = "www/index.html" + fileName = "index.html" } //log.Printf("staticFileServer attempting to load filename '%s'\n", fileName) // Try to open the file from the embedded FS - file, err := content.Open(fileName) + file, err := content.Open("www/" + fileName) if err != nil { c.String(http.StatusNotFound, "File not found") return