aboutsummaryrefslogtreecommitdiffstats
path: root/apps/files/appinfo/routes.php
diff options
context:
space:
mode:
authorTom Needham <tom@owncloud.com>2013-02-10 14:42:23 +0100
committerTom Needham <tom@owncloud.com>2013-02-10 14:42:23 +0100
commitf141f8b523f71351841f64ab1e4782b4535ca1b7 (patch)
tree4f0acbbe232e9160c860ebe5a55fe16052d7c44f /apps/files/appinfo/routes.php
parent6d74aa0d00cd19a008059705071ebd9fa759a9ea (diff)
downloadnextcloud-server-f141f8b523f71351841f64ab1e4782b4535ca1b7.tar.gz
nextcloud-server-f141f8b523f71351841f64ab1e4782b4535ca1b7.zip
Add further capabilities to /cloud/capabilitites api call
Diffstat (limited to 'apps/files/appinfo/routes.php')
-rw-r--r--apps/files/appinfo/routes.php5
1 files changed, 4 insertions, 1 deletions
diff --git a/apps/files/appinfo/routes.php b/apps/files/appinfo/routes.php
index 043782a9c04..fcd5f4b2608 100644
--- a/apps/files/appinfo/routes.php
+++ b/apps/files/appinfo/routes.php
@@ -8,4 +8,7 @@
$this->create('download', 'download{file}')
->requirements(array('file' => '.*'))
- ->actionInclude('files/download.php'); \ No newline at end of file
+ ->actionInclude('files/download.php');
+
+// Register with the capabilities API
+OC_API::register('get', '/cloud/capabilities', array('OCA\Files\Capabilities', 'getCapabilities'), 'files', OC_API::USER_AUTH); \ No newline at end of file