summaryrefslogtreecommitdiffstats
path: root/apps/files_sharing/appinfo/routes.php
diff options
context:
space:
mode:
authorMorris Jobke <hey@morrisjobke.de>2015-03-30 10:06:05 +0200
committerMorris Jobke <hey@morrisjobke.de>2015-03-30 10:06:05 +0200
commitcfe241a959d02fa856c0aca3cb7779b02cb3c943 (patch)
tree8ad1a40e73e9dc209b7208913192563163f60f74 /apps/files_sharing/appinfo/routes.php
parent00b2be11dda5934998636ae774d29a16bd6d1f10 (diff)
parentec31ee911779aeba9c81a95ceb5891bd93b97dd5 (diff)
downloadnextcloud-server-cfe241a959d02fa856c0aca3cb7779b02cb3c943.tar.gz
nextcloud-server-cfe241a959d02fa856c0aca3cb7779b02cb3c943.zip
Merge pull request #13964 from rullzer/capabilities
Add OCS sharing info to capabilities - take 2
Diffstat (limited to 'apps/files_sharing/appinfo/routes.php')
-rw-r--r--apps/files_sharing/appinfo/routes.php6
1 files changed, 6 insertions, 0 deletions
diff --git a/apps/files_sharing/appinfo/routes.php b/apps/files_sharing/appinfo/routes.php
index 3e2df122fde..16f8727a510 100644
--- a/apps/files_sharing/appinfo/routes.php
+++ b/apps/files_sharing/appinfo/routes.php
@@ -79,3 +79,9 @@ $this->create('sharing_external_test_remote', '/testremote')
'/apps/files_sharing/api/v1/shares/{id}',
array('\OCA\Files_Sharing\API\Local', 'deleteShare'),
'files_sharing');
+
+// Register with the capabilities API
+\OC_API::register('get',
+ '/cloud/capabilities',
+ array('OCA\Files_Sharing\Capabilities', 'getCapabilities'),
+ 'files_sharing', \OC_API::USER_AUTH);