properly register webdav methods with chi

Signed-off-by: Jörn Friedrich Dreyer <jfd@butonic.de>
This commit is contained in:
Jörn Friedrich Dreyer
2023-07-31 15:11:03 +02:00
parent c4f32868ee
commit 21f52a8523
3 changed files with 17 additions and 57 deletions

View File

@@ -151,18 +151,9 @@ func DefaultPolicies() []config.Policy {
// TODO or we allow a REPORT on /dav/spaces to search all spaces and /dav/space/{spaceid} to search a specific space
// send webdav REPORT requests to search service
{
Type: config.RegexRoute,
Method: "REPORT",
Endpoint: "/remote.php/dav/",
Service: "com.owncloud.web.webdav",
},
{
Method: "REPORT",
Endpoint: "/remote.php/webdav",
Service: "com.owncloud.web.webdav",
},
{
Method: "REPORT",
Endpoint: "/dav/spaces",
Endpoint: "(/remote.php)?/(web)?dav",
Service: "com.owncloud.web.webdav",
},
{