fix: путь к шаблону templates/index.html

This commit is contained in:
“Naeel”
2026-08-09 10:33:13 +04:00
parent fe4b2f502a
commit 4f5a1bfdc9
+1 -1
View File
@@ -66,7 +66,7 @@ func rootHandler(w http.ResponseWriter, r *http.Request) {
return
}
w.Header().Set("Content-Type", "text/html; charset=utf-8")
tmpl, _ := templateFS.ReadFile("index.html")
tmpl, _ := templateFS.ReadFile("templates/index.html")
html := strings.Replace(string(tmpl), "{{.Version}}", VERSION, 1)
fmt.Fprint(w, html)
}