aboutsummaryrefslogtreecommitdiffstats
path: root/apps/provisioning_api/appinfo
diff options
context:
space:
mode:
authorBjoern Schiessle <bjoern@schiessle.org>2017-01-24 15:45:55 +0100
committerBjoern Schiessle <bjoern@schiessle.org>2017-01-25 11:20:35 +0100
commit5086335643b6181284ee50f57b95525002842992 (patch)
tree92eb5ecb8726f51253a6e02a54a18bb2ec359890 /apps/provisioning_api/appinfo
parentfee42647fb06b30cf35e2b21e2e8b5c8ef72bcc8 (diff)
downloadnextcloud-server-5086335643b6181284ee50f57b95525002842992.tar.gz
nextcloud-server-5086335643b6181284ee50f57b95525002842992.zip
unify endpoints form core and the the provisioning api
Signed-off-by: Bjoern Schiessle <bjoern@schiessle.org>
Diffstat (limited to 'apps/provisioning_api/appinfo')
-rw-r--r--apps/provisioning_api/appinfo/routes.php1
1 files changed, 1 insertions, 0 deletions
diff --git a/apps/provisioning_api/appinfo/routes.php b/apps/provisioning_api/appinfo/routes.php
index 04a34fba903..baa4e475be8 100644
--- a/apps/provisioning_api/appinfo/routes.php
+++ b/apps/provisioning_api/appinfo/routes.php
@@ -45,6 +45,7 @@ return [
['root' => '/cloud', 'name' => 'Users#getUsers', 'url' => '/users', 'verb' => 'GET'],
['root' => '/cloud', 'name' => 'Users#addUser', 'url' => '/users', 'verb' => 'POST'],
['root' => '/cloud', 'name' => 'Users#getUser', 'url' => '/users/{userId}', 'verb' => 'GET'],
+ ['root' => '/cloud', 'name' => 'Users#getCurrentUser', 'url' => '/user', 'verb' => 'GET'],
['root' => '/cloud', 'name' => 'Users#editUser', 'url' => '/users/{userId}', 'verb' => 'PUT'],
['root' => '/cloud', 'name' => 'Users#deleteUser', 'url' => '/users/{userId}', 'verb' => 'DELETE'],
['root' => '/cloud', 'name' => 'Users#enableUser', 'url' => '/users/{userId}/enable', 'verb' => 'PUT'],