mirror of
https://git.sr.ht/~sircmpwn/tokidoki
synced 2025-12-14 20:54:16 +01:00
Register WebDAV-specific HTTP methods with chi
Otherwise the router will return 405 before the request makes it to our middleware.
This commit is contained in:
parent
2b6220c1ea
commit
6051fec4c4
1 changed files with 3 additions and 0 deletions
|
|
@ -29,6 +29,9 @@ func main() {
|
||||||
os.Exit(1)
|
os.Exit(1)
|
||||||
}
|
}
|
||||||
|
|
||||||
|
chi.RegisterMethod("PROPFIND")
|
||||||
|
chi.RegisterMethod("REPORT")
|
||||||
|
chi.RegisterMethod("MKCOL")
|
||||||
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