summaryrefslogtreecommitdiffstats
path: root/apps/provisioning_api/appinfo/routes.php
diff options
context:
space:
mode:
authorRoeland Jago Douma <roeland@famdouma.nl>2015-07-25 14:32:49 +0200
committerRoeland Jago Douma <roeland@famdouma.nl>2015-08-02 10:22:26 +0200
commitb745e7573731039ab0cf97440782c170069d25e2 (patch)
tree19f6bd33c301c6cd35d43bc48988376cdec005b9 /apps/provisioning_api/appinfo/routes.php
parentabca7737b77c00694359fc7839edf0638e5bafc0 (diff)
downloadnextcloud-server-b745e7573731039ab0cf97440782c170069d25e2.tar.gz
nextcloud-server-b745e7573731039ab0cf97440782c170069d25e2.zip
[provisioning_api] Moved groups away from static stuff
Diffstat (limited to 'apps/provisioning_api/appinfo/routes.php')
-rw-r--r--apps/provisioning_api/appinfo/routes.php4
1 files changed, 3 insertions, 1 deletions
diff --git a/apps/provisioning_api/appinfo/routes.php b/apps/provisioning_api/appinfo/routes.php
index c25dba72263..1fe9ce73108 100644
--- a/apps/provisioning_api/appinfo/routes.php
+++ b/apps/provisioning_api/appinfo/routes.php
@@ -44,7 +44,9 @@ API::register('delete', '/cloud/users/{userid}/subadmins', [$users, 'removeSubAd
API::register('get', '/cloud/users/{userid}/subadmins', [$users, 'getUserSubAdminGroups'], 'provisioning_api', API::ADMIN_AUTH);
// Groups
-$groups = new \OCA\Provisioning_API\Groups();
+$groups = new \OCA\Provisioning_API\Groups(
+ \OC::$server->getGroupManager()
+);
API::register('get', '/cloud/groups', [$groups, 'getGroups'], 'provisioning_api', API::SUBADMIN_AUTH);
API::register('post', '/cloud/groups', [$groups, 'addGroup'], 'provisioning_api', API::SUBADMIN_AUTH);
API::register('get', '/cloud/groups/{groupid}', [$groups, 'getGroup'], 'provisioning_api', API::SUBADMIN_AUTH);