aboutsummaryrefslogtreecommitdiff
path: root/cmd/server/handlers.go
diff options
context:
space:
mode:
Diffstat (limited to 'cmd/server/handlers.go')
-rw-r--r--cmd/server/handlers.go3
1 files changed, 3 insertions, 0 deletions
diff --git a/cmd/server/handlers.go b/cmd/server/handlers.go
index e6d2203..49f2039 100644
--- a/cmd/server/handlers.go
+++ b/cmd/server/handlers.go
@@ -4,6 +4,7 @@ import (
"net/http"
"path/filepath"
"strings"
+ "fmt"
"riedstra.dev/mitch/go-website/mapcache"
"riedstra.dev/mitch/go-website/page"
@@ -55,6 +56,8 @@ func (a *App) Handler() http.Handler {
}
for _, r := range cacheableRoutes {
+ fmt.Printf("Calling mux.Handle(r.path(%s), cacheHandler(r.handler(%v)))\n",
+ r.path, r.handler)
mux.Handle(r.path, cacheHandler(r.handler))
}