diff options
Diffstat (limited to 'examples/fileserver/main.go')
-rw-r--r-- | examples/fileserver/main.go | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/examples/fileserver/main.go b/examples/fileserver/main.go index b38ae76..35c8708 100644 --- a/examples/fileserver/main.go +++ b/examples/fileserver/main.go @@ -5,6 +5,7 @@ import ( "log" "os" + "tildegit.org/tjp/gus" "tildegit.org/tjp/gus/contrib/fs" guslog "tildegit.org/tjp/gus/contrib/log" "tildegit.org/tjp/gus/gemini" @@ -23,7 +24,7 @@ func main() { // build the request handler fileSystem := os.DirFS(".") // Fallthrough tries each handler in succession until it gets something other than "51 Not Found" - handler := gemini.FallthroughHandler( + handler := gus.FallthroughHandler( // first see if they're fetching a directory and we have <dir>/index.gmi fs.DirectoryDefault(fileSystem, "index.gmi"), // next (still if they requested a directory) build a directory listing response |