diff options
author | Björn Schießle <schiessle@owncloud.com> | 2016-05-04 12:16:02 +0200 |
---|---|---|
committer | Björn Schießle <schiessle@owncloud.com> | 2016-05-20 21:15:11 +0200 |
commit | 8f87e1104d37063ff561a69348f725a2b907b9f5 (patch) | |
tree | 299c83e7ee9f46a8c86a285b8a0c75e26ad73a49 /ocs/routes.php | |
parent | 5a1641bed23182a35cfbdcdb526b3c41260a7c0f (diff) | |
download | nextcloud-server-8f87e1104d37063ff561a69348f725a2b907b9f5.tar.gz nextcloud-server-8f87e1104d37063ff561a69348f725a2b907b9f5.zip |
use query builder for getShare and add tests
Diffstat (limited to 'ocs/routes.php')
-rw-r--r-- | ocs/routes.php | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/ocs/routes.php b/ocs/routes.php index 24af2460881..a7e3488d4a3 100644 --- a/ocs/routes.php +++ b/ocs/routes.php @@ -100,7 +100,7 @@ API::register( // Server-to-Server Sharing if (\OC::$server->getAppManager()->isEnabledForUser('files_sharing')) { $federatedSharingApp = new \OCA\FederatedFileSharing\AppInfo\Application('federatedfilesharing'); - $s2s = new OCA\FederatedFileSharing\RequestHandler($federatedSharingApp->getFederatedShareProvider()); + $s2s = new OCA\FederatedFileSharing\RequestHandler($federatedSharingApp->getFederatedShareProvider(), \OC::$server->getDatabaseConnection()); API::register('post', '/cloud/shares', array($s2s, 'createShare'), |