summaryrefslogtreecommitdiff
path: root/gopher.go
diff options
context:
space:
mode:
Diffstat (limited to 'gopher.go')
-rw-r--r--gopher.go2
1 files changed, 1 insertions, 1 deletions
diff --git a/gopher.go b/gopher.go
index d5cf3c0..dcd2085 100644
--- a/gopher.go
+++ b/gopher.go
@@ -109,7 +109,7 @@ func addGopherCGIRoute(router *sr.Router, route RouteDirective) {
func addGopherGitRoute(router *sr.Router, route RouteDirective) {
buildAndAddRoute(router, route, func(route RouteDirective) sr.Handler {
return sr.HandlerFunc(func(ctx context.Context, request *sr.Request) *sr.Response {
- subrouter := syw.GopherRouter(route.FsPath, nil)
+ subrouter := syw.GopherRouter(route.FsPath, route.Modifiers.Templates)
reqclone := cloneRequest(request)
reqclone.Path = strings.TrimPrefix(reqclone.Path, route.URLPath)