summaryrefslogtreecommitdiffstats
path: root/apps/files/lib
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/lib
parent6d74aa0d00cd19a008059705071ebd9fa759a9ea (diff)
downloadnextcloud-server-f141f8b523f71351841f64ab1e4782b4535ca1b7.tar.gz
nextcloud-server-f141f8b523f71351841f64ab1e4782b4535ca1b7.zip
Add further capabilities to /cloud/capabilitites api call
Diffstat (limited to 'apps/files/lib')
-rw-r--r--apps/files/lib/capabilities.php24
1 files changed, 24 insertions, 0 deletions
diff --git a/apps/files/lib/capabilities.php b/apps/files/lib/capabilities.php
new file mode 100644
index 00000000000..90a5e2f4eb9
--- /dev/null
+++ b/apps/files/lib/capabilities.php
@@ -0,0 +1,24 @@
+<?php
+/**
+ * Copyright (c) 2013 Tom Needham <tom@owncloud.com>
+ * This file is licensed under the Affero General Public License version 3 or
+ * later.
+ * See the COPYING-README file.
+ */
+
+namespace OCA\Files;
+
+class Capabilities {
+
+ public static function getCapabilities() {
+ return new \OC_OCS_Result(array(
+ 'capabilities' => array(
+ 'files' => array(
+ 'bigfilechunking' => true,
+ 'undelete' => true,
+ ),
+ ),
+ ));
+ }
+
+} \ No newline at end of file