Almost there

This commit is contained in:
Daniel Ledda
2020-11-14 15:22:39 +01:00
parent 9f3301f965
commit 4dbba76867

View File

@@ -38,7 +38,7 @@ func showCharts(w http.ResponseWriter, r *http.Request) {
} }
templater, err := template.ParseFiles("webapp/dist/charts.html") templater, err := template.ParseFiles("webapp/dist/charts.html")
if internalErrorOnErr(fmt.Errorf("couldn't parse the template: %w", err), w, r) { return } if internalErrorOnErr(fmt.Errorf("couldn't parse the template: %w", err), w, r) { return }
err = templater.Execute(w, ROOT_URL + "/show") err = templater.Execute(w, ROOT_URL)
internalErrorOnErr(err, w, r) internalErrorOnErr(err, w, r)
} }