From: Joas Schilling Date: Fri, 17 Apr 2020 09:19:49 +0000 (+0200) Subject: Make sure the cloud_federation_api routes are loaded X-Git-Tag: v19.0.0beta5~10^2~2 X-Git-Url: https://source.dussan.org/?a=commitdiff_plain;h=6332d7c0b3e3dddfdc6f0a77c63bd2684dda3b69;p=nextcloud-server.git Make sure the cloud_federation_api routes are loaded Signed-off-by: Joas Schilling --- 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']);