Add support for proxying CalDAV HTTP methods (#2003)
* Add support to handle PROPFIND methods * Add further http methods for caldav
This commit is contained in:
@@ -51,6 +51,15 @@ func Router(config *ServerConfig) chi.Router {
|
||||
|
||||
r.Use(httpStatsMiddleware(config))
|
||||
|
||||
// Enable support for additional HTTP methods
|
||||
// Methods for CalDAV
|
||||
chi.RegisterMethod("PROPFIND")
|
||||
chi.RegisterMethod("PROPPATCH")
|
||||
chi.RegisterMethod("MKCALENDAR")
|
||||
chi.RegisterMethod("MKCOL")
|
||||
chi.RegisterMethod("REPORT")
|
||||
chi.RegisterMethod("ACL")
|
||||
|
||||
// Authentication middleware (applies to all routes after this point)
|
||||
r.Use(authMiddleware(config))
|
||||
|
||||
|
||||
Reference in New Issue
Block a user