Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/nextcloud/server.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
Diffstat (limited to 'ocs/routes.php')
-rw-r--r--ocs/routes.php3
1 files changed, 2 insertions, 1 deletions
diff --git a/ocs/routes.php b/ocs/routes.php
index b99aa5c7597..af9c3e74137 100644
--- a/ocs/routes.php
+++ b/ocs/routes.php
@@ -99,7 +99,8 @@ API::register(
// Server-to-Server Sharing
if (\OC::$server->getAppManager()->isEnabledForUser('files_sharing')) {
- $s2s = new \OCA\Files_Sharing\API\Server2Server();
+ $federatedSharingApp = new \OCA\FederatedFileSharing\AppInfo\Application('federatedfilesharing');
+ $s2s = new \OCA\Files_Sharing\API\Server2Server($federatedSharingApp->getFederatedShareProvider());
API::register('post',
'/cloud/shares',
array($s2s, 'createShare'),