diff options
author | Tom Needham <tom@owncloud.com> | 2013-04-27 20:51:36 +0400 |
---|---|---|
committer | Tom Needham <tom@owncloud.com> | 2013-04-28 14:53:23 +0400 |
commit | d642480c5547b802324d9cce5774b4324d9fb7cc (patch) | |
tree | 2f32b205dc934b8604ed015720d8d32feb68105f /ocs | |
parent | 556ea61f8ebe5832050aab9e56d6b2a18aa410dc (diff) |
Code style for ocs/routes.php
Diffstat (limited to 'ocs')
-rw-r--r-- | ocs/routes.php | 74 |
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 |