Almost there
This commit is contained in:
@@ -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)
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user