From 2ef530daa47b301a40c1ee93cd43b8f36fc68c0b Mon Sep 17 00:00:00 2001 From: tjpcc Date: Tue, 17 Jan 2023 15:59:29 -0700 Subject: pull request, response, handlers out of the gemini package --- examples/fileserver/main.go | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) (limited to 'examples/fileserver/main.go') 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 /index.gmi fs.DirectoryDefault(fileSystem, "index.gmi"), // next (still if they requested a directory) build a directory listing response -- cgit v1.2.3