2021-03-01 18:04:59 +00:00
|
|
|
package webdav
|
|
|
|
|
|
|
|
import (
|
|
|
|
"github.com/distribyted/distribyted/fs"
|
|
|
|
"golang.org/x/net/webdav"
|
|
|
|
)
|
|
|
|
|
2021-03-06 22:08:15 +00:00
|
|
|
func newHandler(fss map[string]fs.Filesystem) *webdav.Handler {
|
2021-03-01 18:04:59 +00:00
|
|
|
return &webdav.Handler{
|
|
|
|
Prefix: "/",
|
|
|
|
FileSystem: newFS(fss),
|
|
|
|
LockSystem: webdav.NewMemLS(),
|
|
|
|
}
|
|
|
|
}
|