added logging

This commit is contained in:
Patryk Hegenberg 2023-12-04 11:14:37 +01:00
parent a408e1487d
commit 2d3f1ef951
6 changed files with 9 additions and 2 deletions

View file

@ -8,6 +8,7 @@ import (
)
func AboutHandler(content embed.FS) http.HandlerFunc {
log.Print("AboutHandler called")
return func(w http.ResponseWriter, r *http.Request) {
tmpl, err := template.ParseFS(content, "templates/base.html", "templates/header.html", "templates/main.html", "templates/footer.html", "templates/about.html")
if err != nil {