tstor/webdav/handler.go

15 lines
270 B
Go
Raw Normal View History

2021-03-01 18:04:59 +00:00
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(),
}
}