fix(dav): remove unnecessary plugin getHTTPMethods

Signed-off-by: John Molakvoæ (skjnldsv) <skjnldsv@protonmail.com>
This commit is contained in:
John Molakvoæ (skjnldsv) 2025-05-13 14:17:07 +02:00
parent 4495794a0b
commit b286bca485
No known key found for this signature in database
GPG key ID: 60C25B8C072916CF

View file

@ -26,20 +26,6 @@ class ChecksumUpdatePlugin extends ServerPlugin {
return 'checksumupdate';
}
/** @return string[] */
public function getHTTPMethods($path): array {
$tree = $this->server->tree;
if ($tree->nodeExists($path)) {
$node = $tree->getNodeForPath($path);
if ($node instanceof File) {
return ['PATCH'];
}
}
return [];
}
/** @return string[] */
public function getFeatures(): array {
return ['nextcloud-checksum-update'];