Register COPY & MOVE methods with chi
This commit is contained in:
parent
8b46585109
commit
0f2356f42d
@ -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)
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user