summaryrefslogtreecommitdiffstats
path: root/ocs
diff options
context:
space:
mode:
authorJoas Schilling <nickvergessen@owncloud.com>2015-04-18 10:30:02 +0200
committerJoas Schilling <nickvergessen@owncloud.com>2015-04-18 10:30:02 +0200
commit3f3f8c2f99e04586424dcbc845e0b73614b9a8bd (patch)
tree858de94992595ab3dcdf05706df443722d113a09 /ocs
parent6ce1abfa5c273c657cde1a52fb0fdd3ca450e2c6 (diff)
downloadnextcloud-server-3f3f8c2f99e04586424dcbc845e0b73614b9a8bd.tar.gz
nextcloud-server-3f3f8c2f99e04586424dcbc845e0b73614b9a8bd.zip
Fix usage of deprecated private constants
Diffstat (limited to 'ocs')
-rw-r--r--ocs/routes.php58
1 files changed, 30 insertions, 28 deletions
diff --git a/ocs/routes.php b/ocs/routes.php
index 2a8fe5dc2af..751a16d538e 100644
--- a/ocs/routes.php
+++ b/ocs/routes.php
@@ -23,109 +23,111 @@
*
*/
+use OCP\API;
+
// Config
-OC_API::register(
+API::register(
'get',
'/config',
array('OC_OCS_Config', 'apiConfig'),
'core',
- OC_API::GUEST_AUTH
+ API::GUEST_AUTH
);
// Person
-OC_API::register(
+API::register(
'post',
'/person/check',
array('OC_OCS_Person', 'check'),
'core',
- OC_API::GUEST_AUTH
+ API::GUEST_AUTH
);
// Privatedata
-OC_API::register(
+API::register(
'get',
'/privatedata/getattribute',
array('OC_OCS_Privatedata', 'get'),
'core',
- OC_API::USER_AUTH,
+ API::USER_AUTH,
array('app' => '', 'key' => '')
);
-OC_API::register(
+API::register(
'get',
'/privatedata/getattribute/{app}',
array('OC_OCS_Privatedata', 'get'),
'core',
- OC_API::USER_AUTH,
+ API::USER_AUTH,
array('key' => '')
);
-OC_API::register(
+API::register(
'get',
'/privatedata/getattribute/{app}/{key}',
array('OC_OCS_Privatedata', 'get'),
'core',
- OC_API::USER_AUTH
+ API::USER_AUTH
);
-OC_API::register(
+API::register(
'post',
'/privatedata/setattribute/{app}/{key}',
array('OC_OCS_Privatedata', 'set'),
'core',
- OC_API::USER_AUTH
+ API::USER_AUTH
);
-OC_API::register(
+API::register(
'post',
'/privatedata/deleteattribute/{app}/{key}',
array('OC_OCS_Privatedata', 'delete'),
'core',
- OC_API::USER_AUTH
+ API::USER_AUTH
);
// cloud
-OC_API::register(
+API::register(
'get',
'/cloud/capabilities',
array('OC_OCS_Cloud', 'getCapabilities'),
'core',
- OC_API::USER_AUTH
+ API::USER_AUTH
);
-OC_API::register(
+API::register(
'get',
'/cloud/users/{userid}',
array('OC_OCS_Cloud', 'getUser'),
'core',
- OC_API::USER_AUTH
+ API::USER_AUTH
);
-OC_API::register(
+API::register(
'get',
'/cloud/user',
array('OC_OCS_Cloud', 'getCurrentUser'),
'core',
- OC_API::USER_AUTH
+ API::USER_AUTH
);
// Server-to-Server Sharing
$s2s = new \OCA\Files_Sharing\API\Server2Server();
-OC_API::register('post',
+API::register('post',
'/cloud/shares',
array($s2s, 'createShare'),
'files_sharing',
- OC_API::GUEST_AUTH
+ API::GUEST_AUTH
);
-OC_API::register('post',
+API::register('post',
'/cloud/shares/{id}/accept',
array($s2s, 'acceptShare'),
'files_sharing',
- OC_API::GUEST_AUTH
+ API::GUEST_AUTH
);
-OC_API::register('post',
+API::register('post',
'/cloud/shares/{id}/decline',
array($s2s, 'declineShare'),
'files_sharing',
- OC_API::GUEST_AUTH
+ API::GUEST_AUTH
);
-OC_API::register('post',
+API::register('post',
'/cloud/shares/{id}/unshare',
array($s2s, 'unshare'),
'files_sharing',
- OC_API::GUEST_AUTH
+ API::GUEST_AUTH
);