diff options
author | Joas Schilling <213943+nickvergessen@users.noreply.github.com> | 2022-10-03 18:23:21 +0200 |
---|---|---|
committer | GitHub <noreply@github.com> | 2022-10-03 18:23:21 +0200 |
commit | f888f99b0a4f599ea403cdf337935093c5420586 (patch) | |
tree | a112c76282641ac1a02e8f2956a6d76f9e620d7f /lib/private | |
parent | 586d031a530a39214ddf16c7f27b27c7a23dc584 (diff) | |
parent | d434da75bb872e19c26839b5a73c022b1ba956e0 (diff) | |
download | nextcloud-server-f888f99b0a4f599ea403cdf337935093c5420586.tar.gz nextcloud-server-f888f99b0a4f599ea403cdf337935093c5420586.zip |
Merge pull request #34350 from nextcloud/bugfix/34278/add-capability-for-the-reference-api
Add a capability for the reference API and expose the regex to clients
Diffstat (limited to 'lib/private')
-rw-r--r-- | lib/private/OCS/CoreCapabilities.php | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/lib/private/OCS/CoreCapabilities.php b/lib/private/OCS/CoreCapabilities.php index ab06b04cc91..578152ff108 100644 --- a/lib/private/OCS/CoreCapabilities.php +++ b/lib/private/OCS/CoreCapabilities.php @@ -24,6 +24,7 @@ namespace OC\OCS; use OCP\Capabilities\ICapability; use OCP\IConfig; +use OCP\IURLGenerator; /** * Class Capabilities @@ -52,7 +53,9 @@ class CoreCapabilities implements ICapability { 'core' => [ 'pollinterval' => $this->config->getSystemValue('pollinterval', 60), 'webdav-root' => $this->config->getSystemValue('webdav-root', 'remote.php/webdav'), - ] + 'reference-api' => true, + 'reference-regex' => IURLGenerator::URL_REGEX_NO_MODIFIERS, + ], ]; } } |