aboutsummaryrefslogtreecommitdiffstats
path: root/ocm-provider
diff options
context:
space:
mode:
authorJoas Schilling <coding@schilljs.com>2020-04-17 11:19:49 +0200
committerRoeland Jago Douma <roeland@famdouma.nl>2020-04-18 11:21:28 +0200
commit6332d7c0b3e3dddfdc6f0a77c63bd2684dda3b69 (patch)
tree5eb52bd9d2217cd4427ae45133c22be59c349745 /ocm-provider
parent031b6656d1e67fae4af5a0aeab69c668c3cd586d (diff)
downloadnextcloud-server-6332d7c0b3e3dddfdc6f0a77c63bd2684dda3b69.tar.gz
nextcloud-server-6332d7c0b3e3dddfdc6f0a77c63bd2684dda3b69.zip
Make sure the cloud_federation_api routes are loaded
Signed-off-by: Joas Schilling <coding@schilljs.com>
Diffstat (limited to 'ocm-provider')
-rw-r--r--ocm-provider/index.php2
1 files changed, 2 insertions, 0 deletions
diff --git a/ocm-provider/index.php b/ocm-provider/index.php
index e1aa7f2b03b..1b90fd53665 100644
--- a/ocm-provider/index.php
+++ b/ocm-provider/index.php
@@ -29,6 +29,8 @@ $server = \OC::$server;
$isEnabled = $server->getAppManager()->isEnabledForUser('cloud_federation_api');
if ($isEnabled) {
+ // Make sure the routes are loaded
+ \OC_App::loadApp('cloud_federation_api');
$capabilities = new OCA\CloudFederationAPI\Capabilities($server->getURLGenerator());
header('Content-Type: application/json');
echo json_encode($capabilities->getCapabilities()['ocm']);