From 9543bf407b0eea2376143329396bef823a4bfe59 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Adrian=20Z=C3=BCrcher?= Date: Sat, 17 Jan 2026 00:04:52 +0100 Subject: [PATCH] fix missing static folder --- main.go | 2 +- web/static/frame.html | 1 + 2 files changed, 2 insertions(+), 1 deletion(-) diff --git a/main.go b/main.go index 99de5f0..eced657 100644 --- a/main.go +++ b/main.go @@ -32,7 +32,7 @@ func main() { r.HandleFunc("/api/images", handlers.ListFilesHandler).Methods("GET") r.HandleFunc("/ws", handlers.Websocket) r.HandleFunc("/upload", handlers.UploadHandler).Methods("POST") - r.HandleFunc("/settings", func(w http.ResponseWriter, r *http.Request) { http.ServeFile(w, r, "settings.html") }) + r.HandleFunc("/settings", func(w http.ResponseWriter, r *http.Request) { http.ServeFile(w, r, staticFolder+"settings.html") }) r.HandleFunc("/api/save-schedule", handlers.SaveSchedule).Methods("POST") r.HandleFunc("/api/get-schedule", handlers.GetSchedule).Methods("GET") diff --git a/web/static/frame.html b/web/static/frame.html index 32f8c68..6c8f893 100644 --- a/web/static/frame.html +++ b/web/static/frame.html @@ -193,6 +193,7 @@ const res = await fetch('/api/info'); const data = await res.json(); const uploadUrl = `http://${data.ip}:${data.port}/`; + new QRCode(document.getElementById("qrcode"), { text: uploadUrl, width: 128,