Register COPY & MOVE methods with chi

This commit is contained in:
Conrad Hoffmann 2022-02-24 13:39:03 +01:00
parent 8b46585109
commit 0f2356f42d

View File

@ -30,9 +30,15 @@ func main() {
os.Exit(1)
}
chi.RegisterMethod("PROPFIND")
chi.RegisterMethod("REPORT")
chi.RegisterMethod("MKCOL")
for _, method := range []string{
"PROPFIND",
"REPORT",
"MKCOL",
"COPY",
"MOVE",
} {
chi.RegisterMethod(method)
}
mux := chi.NewRouter()
mux.Use(middleware.Logger)