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) os.Exit(1)
} }
chi.RegisterMethod("PROPFIND") for _, method := range []string{
chi.RegisterMethod("REPORT") "PROPFIND",
chi.RegisterMethod("MKCOL") "REPORT",
"MKCOL",
"COPY",
"MOVE",
} {
chi.RegisterMethod(method)
}
mux := chi.NewRouter() mux := chi.NewRouter()
mux.Use(middleware.Logger) mux.Use(middleware.Logger)