Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/nextcloud/server.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
path: root/ocs
diff options
context:
space:
mode:
authorThomas Müller <thomas.mueller@tmit.eu>2013-10-21 22:06:11 +0400
committerThomas Müller <thomas.mueller@tmit.eu>2013-10-21 22:14:18 +0400
commit66a2f3b0b9b0e1218f38a501095b9e5a9a1b1e9b (patch)
treee7ab413e53f8db838b569d8410737174620037da /ocs
parenta376407da3dcac86f5a2ab41f23545ff6c4b21d9 (diff)
New OCS route:
/ocs/cloud/user Response: <?xml version="1.0"?> <ocs> <meta> <status>ok</status> <statuscode>100</statuscode> <message/> </meta> <data> <id>thomas</id> <display-name>DeepDiver</display-name> <email>no-response@domain.tld</email> </data> </ocs>
Diffstat (limited to 'ocs')
-rw-r--r--ocs/routes.php9
1 files changed, 8 insertions, 1 deletions
diff --git a/ocs/routes.php b/ocs/routes.php
index c4a74d77900..845ee49a46d 100644
--- a/ocs/routes.php
+++ b/ocs/routes.php
@@ -73,4 +73,11 @@ OC_API::register(
array('OC_OCS_Cloud', 'getUser'),
'core',
OC_API::USER_AUTH
- );
+);
+OC_API::register(
+ 'get',
+ '/cloud/user',
+ array('OC_OCS_Cloud', 'getCurrentUser'),
+ 'core',
+ OC_API::USER_AUTH
+);