summaryrefslogtreecommitdiffstats
path: root/ocs/routes.php
diff options
context:
space:
mode:
authorTom Needham <tom@owncloud.com>2013-04-27 17:51:36 +0100
committerTom Needham <tom@owncloud.com>2013-04-27 17:51:36 +0100
commit66053693f8032d9e2de8d809620ecd79e2c89e2a (patch)
tree804343a7f9afd6d05879e35324735e4a8de04930 /ocs/routes.php
parent59db762dfa7194e07f63bad5cb8397b8646afe18 (diff)
downloadnextcloud-server-66053693f8032d9e2de8d809620ecd79e2c89e2a.tar.gz
nextcloud-server-66053693f8032d9e2de8d809620ecd79e2c89e2a.zip
Code style for ocs/routes.php
Diffstat (limited to 'ocs/routes.php')
-rw-r--r--ocs/routes.php74
1 files changed, 65 insertions, 9 deletions
diff --git a/ocs/routes.php b/ocs/routes.php
index 638a6943924..ed54758faef 100644
--- a/ocs/routes.php
+++ b/ocs/routes.php
@@ -6,16 +6,72 @@
*/
// Config
-OC_API::register('get', '/config', array('OC_OCS_Config', 'apiConfig'), 'core', OC_API::GUEST_AUTH);
+OC_API::register(
+ 'get',
+ '/config',
+ array('OC_OCS_Config', 'apiConfig'),
+ 'core',
+ OC_API::GUEST_AUT
+ );
// Person
-OC_API::register('post', '/person/check', array('OC_OCS_Person', 'check'), 'core', OC_API::GUEST_AUTH);
+OC_API::register(
+ 'post',
+ '/person/check',
+ array('OC_OCS_Person', 'check'),
+ 'core',
+ OC_API::GUEST_AUTH
+ );
// Activity
-OC_API::register('get', '/activity', array('OC_OCS_Activity', 'activityGet'), 'core', OC_API::USER_AUTH);
+OC_API::register(
+ 'get',
+ '/activity',
+ array('OC_OCS_Activity', 'activityGet'),
+ 'core',
+ OC_API::USER_AUTH
+ );
// Privatedata
-OC_API::register('get', '/privatedata/getattribute', array('OC_OCS_Privatedata', 'get'), 'core', OC_API::USER_AUTH, array('app' => '', 'key' => ''));
-OC_API::register('get', '/privatedata/getattribute/{app}', array('OC_OCS_Privatedata', 'get'), 'core', OC_API::USER_AUTH, array('key' => ''));
-OC_API::register('get', '/privatedata/getattribute/{app}/{key}', array('OC_OCS_Privatedata', 'get'), 'core', OC_API::USER_AUTH);
-OC_API::register('post', '/privatedata/setattribute/{app}/{key}', array('OC_OCS_Privatedata', 'set'), 'core', OC_API::USER_AUTH);
-OC_API::register('post', '/privatedata/deleteattribute/{app}/{key}', array('OC_OCS_Privatedata', 'delete'), 'core', OC_API::USER_AUTH);
+OC_API::register(
+ 'get',
+ '/privatedata/getattribute',
+ array('OC_OCS_Privatedata', 'get'),
+ 'core',
+ OC_API::USER_AUTH,
+ array('app' => '', 'key' => '')
+ );
+OC_API::register(
+ 'get',
+ '/privatedata/getattribute/{app}',
+ array('OC_OCS_Privatedata', 'get'),
+ 'core',
+ OC_API::USER_AUTH,
+ array('key' => '')
+ );
+OC_API::register(
+ 'get',
+ '/privatedata/getattribute/{app}/{key}',
+ array('OC_OCS_Privatedata', 'get'),
+ 'core',
+ OC_API::USER_AUTH
+ );
+OC_API::register(
+ 'post',
+ '/privatedata/setattribute/{app}/{key}',
+ array('OC_OCS_Privatedata', 'set'),
+ 'core',
+ OC_API::USER_AUTH
+ );
+OC_API::register(
+ 'post',
+ '/privatedata/deleteattribute/{app}/{key}',
+ array('OC_OCS_Privatedata', 'delete'),
+ 'core',
+ OC_API::USER_AUTH
+ );
// cloud
-OC_API::register('get', '/cloud/capabilities', array('OC_OCS_Cloud', 'getCapabilities'), 'core', OC_API::USER_AUTH); \ No newline at end of file
+OC_API::register(
+ 'get',
+ '/cloud/capabilities',
+ array('OC_OCS_Cloud', 'getCapabilities'),
+ 'core',
+ OC_API::USER_AUTH
+ ); \ No newline at end of file