summaryrefslogtreecommitdiffstats
path: root/ocs
diff options
context:
space:
mode:
authorBart Visscher <bartv@thisnet.nl>2012-07-31 23:26:15 +0200
committerBart Visscher <bartv@thisnet.nl>2012-07-31 23:26:15 +0200
commit7426217e760601f684c402bf363a51bb8c79947c (patch)
tree80493de62477a4658fbf50ca001afaa59ac89450 /ocs
parent71918a820f0e5b7e9479711107db059cd3a3b194 (diff)
downloadnextcloud-server-7426217e760601f684c402bf363a51bb8c79947c.tar.gz
nextcloud-server-7426217e760601f684c402bf363a51bb8c79947c.zip
Fix /privatedata/getattribute route
Diffstat (limited to 'ocs')
-rw-r--r--ocs/routes.php2
1 files changed, 2 insertions, 0 deletions
diff --git a/ocs/routes.php b/ocs/routes.php
index 95df0c7ec91..ac23e29af8a 100644
--- a/ocs/routes.php
+++ b/ocs/routes.php
@@ -12,6 +12,8 @@ OC_API::register('post', '/person/check', array('OC_OCS_Person', 'check'), 'ocs'
// Activity
OC_API::register('get', '/activity', array('OC_OCS_Activity', 'activityGet'), 'ocs');
// Privatedata
+OC_API::register('get', '/privatedata/getattribute', array('OC_OCS_Privatedata', 'get'), 'ocs', array('app' => '', 'key' => ''));
+OC_API::register('get', '/privatedata/getattribute/{app}', array('OC_OCS_Privatedata', 'get'), 'ocs', array('key' => ''));
OC_API::register('get', '/privatedata/getattribute/{app}/{key}', array('OC_OCS_Privatedata', 'get'), 'ocs');
OC_API::register('post', '/privatedata/setattribute/{app}/{key}', array('OC_OCS_Privatedata', 'set'), 'ocs');
OC_API::register('post', '/privatedata/deleteattribute/{app}/{key}', array('OC_OCS_Privatedata', 'delete'), 'ocs');