Skip to content

Commit 81fdfef

Browse files
committed
Make sure the cloud_federation_api routes are loaded
Signed-off-by: Joas Schilling <coding@schilljs.com>
1 parent b5fe9e2 commit 81fdfef

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

ocm-provider/index.php

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -29,6 +29,8 @@
2929
$isEnabled = $server->getAppManager()->isEnabledForUser('cloud_federation_api');
3030

3131
if ($isEnabled) {
32+
// Make sure the routes are loaded
33+
\OC_App::loadApp('cloud_federation_api');
3234
$capabilities = new OCA\CloudFederationAPI\Capabilities($server->getURLGenerator());
3335
header('Content-Type: application/json');
3436
echo json_encode($capabilities->getCapabilities()['ocm']);

0 commit comments

Comments
 (0)