tstor/webdav/handler.go
2021-04-04 19:24:58 +02:00

14 lines
255 B
Go

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