summaryrefslogtreecommitdiff
path: root/examples/fileserver
diff options
context:
space:
mode:
Diffstat (limited to 'examples/fileserver')
-rw-r--r--examples/fileserver/main.go10
1 files changed, 5 insertions, 5 deletions
diff --git a/examples/fileserver/main.go b/examples/fileserver/main.go
index be427a1..d38a450 100644
--- a/examples/fileserver/main.go
+++ b/examples/fileserver/main.go
@@ -5,10 +5,10 @@ import (
"log"
"os"
- "tildegit.org/tjp/gus"
- "tildegit.org/tjp/gus/contrib/fs"
- "tildegit.org/tjp/gus/gemini"
- "tildegit.org/tjp/gus/logging"
+ sr "tildegit.org/tjp/sliderule"
+ "tildegit.org/tjp/sliderule/contrib/fs"
+ "tildegit.org/tjp/sliderule/gemini"
+ "tildegit.org/tjp/sliderule/logging"
)
func main() {
@@ -24,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 := gus.FallthroughHandler(
+ handler := sr.FallthroughHandler(
// first see if they're fetching a directory and we have <dir>/index.gmi
fs.GeminiDirectoryDefault(fileSystem, "index.gmi"),
// next (still if they requested a directory) build a directory listing response