2a38efbb03
Signed-off-by: Antonio Navarro Perez <antnavper@gmail.com>
14 lines
268 B
Go
14 lines
268 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(),
|
|
}
|
|
}
|