tstor/webdav/handler.go

15 lines
255 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"
)
2021-04-04 17:24:58 +00:00
func newHandler(fs fs.Filesystem) *webdav.Handler {
2021-03-01 18:04:59 +00:00
return &webdav.Handler{
Prefix: "/",
2021-04-04 17:24:58 +00:00
FileSystem: newFS(fs),
2021-03-01 18:04:59 +00:00
LockSystem: webdav.NewMemLS(),
}
}