diff options
Diffstat (limited to 'ocm-provider')
-rw-r--r-- | ocm-provider/index.php | 2 |
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']); |