aboutsummaryrefslogtreecommitdiffstats
path: root/internal/web/routes.go
diff options
context:
space:
mode:
Diffstat (limited to 'internal/web/routes.go')
-rw-r--r--internal/web/routes.go1
1 files changed, 1 insertions, 0 deletions
diff --git a/internal/web/routes.go b/internal/web/routes.go
index 26264ef..a8a60d2 100644
--- a/internal/web/routes.go
+++ b/internal/web/routes.go
@@ -95,6 +95,7 @@ func (s *Server) rootRoutes() http.Handler {
func (s *Server) blogRoutes(m *http.ServeMux, wrap func(http.HandlerFunc) http.HandlerFunc) {
m.HandleFunc("GET /{$}", wrap(s.handleBlogHome))
m.HandleFunc("GET /feed.xml", wrap(s.handleBlogFeed))
+ m.HandleFunc("GET /tag/{tag}", wrap(s.handleBlogTag)) // literal segment: wins over /{page}/{post}
m.HandleFunc("GET /{page}", wrap(s.handleBlogPage))
m.HandleFunc("GET /{page}/{post}", wrap(s.handleBlogPost))
}