From 33714fcf17c2e7e54a1dc230b8eea92c3c8dcaee Mon Sep 17 00:00:00 2001 From: Zuckerberg Date: Thu, 9 Nov 2023 22:54:12 -0700 Subject: [PATCH] Actually use specified directory --- server/main.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/server/main.go b/server/main.go index 8f100d9..b03343a 100644 --- a/server/main.go +++ b/server/main.go @@ -82,7 +82,7 @@ func fetchImage(w http.ResponseWriter, r *http.Request) { fmt.Printf("Color code: %d, RGB: %v\n", color.Code, color.Color) } - randomImgFile, _ := getRandomFile("img") + randomImgFile, _ := getRandomFile(imageDir) fmt.Println("Serving random image file:", randomImgFile) img := ReadImage(randomImgFile)