tstor/webdav/handler.go
2021-03-01 19:04:59 +01:00

14 lines
270 B
Go

package webdav
import (
"github.com/distribyted/distribyted/fs"
"golang.org/x/net/webdav"
)
func newHandler(fss map[string][]fs.Filesystem) *webdav.Handler {
return &webdav.Handler{
Prefix: "/",
FileSystem: newFS(fss),
LockSystem: webdav.NewMemLS(),
}
}