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