mirror of
https://github.com/nextcloud/server.git
synced 2026-04-22 14:50:17 -04:00
fix(dav): remove unnecessary plugin getHTTPMethods
Signed-off-by: John Molakvoæ (skjnldsv) <skjnldsv@protonmail.com>
This commit is contained in:
parent
4495794a0b
commit
b286bca485
1 changed files with 0 additions and 14 deletions
|
|
@ -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'];
|
||||
|
|
|
|||
Loading…
Reference in a new issue