dave/cmd/server/main.go
2018-04-09 13:02:15 +02:00

15 lines
224 B
Go

package main
import (
"golang.org/x/net/webdav"
"net/http"
)
func main() {
wdHandler := &webdav.Handler{
FileSystem: webdav.Dir("/tmp"),
LockSystem: webdav.NewMemLS(),
}
http.ListenAndServe(":8000", wdHandler)
}