summaryrefslogtreecommitdiffstats
path: root/lib/private/OCS
diff options
context:
space:
mode:
authorJoas Schilling <coding@schilljs.com>2022-09-30 18:13:45 +0200
committerJoas Schilling <coding@schilljs.com>2022-10-01 18:24:08 +0200
commitd434da75bb872e19c26839b5a73c022b1ba956e0 (patch)
tree10ea2d818adbc862c81ec088a5f85a088290dfad /lib/private/OCS
parent910c774b35b25ac783023bebdb34feeb6d608240 (diff)
downloadnextcloud-server-d434da75bb872e19c26839b5a73c022b1ba956e0.tar.gz
nextcloud-server-d434da75bb872e19c26839b5a73c022b1ba956e0.zip
Add a capability for the reference API and expose the regex to clients
Signed-off-by: Joas Schilling <coding@schilljs.com>
Diffstat (limited to 'lib/private/OCS')
-rw-r--r--lib/private/OCS/CoreCapabilities.php5
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,
+ ],
];
}
}