diff options
-rw-r--r-- | examples/fileserver/main.go | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/examples/fileserver/main.go b/examples/fileserver/main.go index d38a450..df5e81d 100644 --- a/examples/fileserver/main.go +++ b/examples/fileserver/main.go @@ -33,6 +33,10 @@ func main() { fs.GeminiFileHandler(fileSystem), ) + router := &sr.Router{} + router.Route("/*", handler) + handler = sr.HandlerFunc(router.Handler) + _, infoLog, _, errLog := logging.DefaultLoggers() // add request logging to stdout |