Skip to content

Commit

Permalink
Add a capability for the reference API and expose the regex to clients
Browse files Browse the repository at this point in the history
Signed-off-by: Joas Schilling <coding@schilljs.com>
  • Loading branch information
nickvergessen committed Sep 30, 2022
1 parent 910c774 commit dcd34d8
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion lib/private/OCS/CoreCapabilities.php
Original file line number Diff line number Diff line change
Expand Up @@ -24,6 +24,7 @@

use OCP\Capabilities\ICapability;
use OCP\IConfig;
use OCP\IURLGenerator;

/**
* Class Capabilities
Expand Down Expand Up @@ -52,7 +53,9 @@ public function getCapabilities() {
'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,
],
];
}
}

0 comments on commit dcd34d8

Please sign in to comment.