aboutsummaryrefslogtreecommitdiff
path: root/webdav.go
diff options
context:
space:
mode:
Diffstat (limited to 'webdav.go')
-rw-r--r--webdav.go3
1 files changed, 2 insertions, 1 deletions
diff --git a/webdav.go b/webdav.go
index 3f3f7d5..8f55b44 100644
--- a/webdav.go
+++ b/webdav.go
@@ -2,6 +2,7 @@ package main
import (
"github.com/minio/minio-go/v7"
+ "git.deuxfleurs.fr/Deuxfleurs/bagage/s3"
"golang.org/x/net/webdav"
"log"
"net/http"
@@ -15,7 +16,7 @@ func (wd WebDav) WithMC(mc *minio.Client) http.Handler {
return http.HandlerFunc(func(w http.ResponseWriter, r *http.Request) {
(&webdav.Handler{
Prefix: wd.WithConfig.DavPath,
- FileSystem: NewS3FS(mc),
+ FileSystem: s3.NewS3FS(mc),
LockSystem: webdav.NewMemLS(),
Logger: func(r *http.Request, err error) {
log.Printf("INFO: %s %s %s\n", r.RemoteAddr, r.Method, r.URL)