diff options
| author | Mitchell Riedstra <mitch@riedstra.dev> | 2026-01-21 00:40:17 -0500 |
|---|---|---|
| committer | Mitchell Riedstra <mitch@riedstra.dev> | 2026-01-21 00:40:17 -0500 |
| commit | cbb0dafad526128d10ff5f4859a1990132e4f75e (patch) | |
| tree | 97f538f1797a3ff82088d9875b5fcce92b5e812a /cmd/server/handlers.go | |
| parent | c5b07cd82fde44730997068029371f453bf31771 (diff) | |
| download | go-website-wip.tar.gz go-website-wip.tar.xz | |
Clean up the example site a touch and make a quick pass on the config load errorswip
Diffstat (limited to 'cmd/server/handlers.go')
| -rw-r--r-- | cmd/server/handlers.go | 3 |
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)) } |
