mirror of
https://git.sr.ht/~sircmpwn/tokidoki
synced 2025-12-12 14:17:21 +01:00
Register COPY & MOVE methods with chi
This commit is contained in:
parent
8b46585109
commit
0f2356f42d
1 changed files with 9 additions and 3 deletions
|
|
@ -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…
Add table
Add a link
Reference in a new issue