fix: путь к шаблону templates/index.html
This commit is contained in:
+1
-1
@@ -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)
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user