tstor/webdav/handler.go
Antonio Navarro Perez 2a38efbb03
Several torrents per filesystem (#38)
Signed-off-by: Antonio Navarro Perez <antnavper@gmail.com>
2021-03-06 23:08:15 +01:00

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(),
}
}