summaryrefslogtreecommitdiffstats
path: root/apps/provisioning_api/appinfo
diff options
context:
space:
mode:
authorRoeland Jago Douma <roeland@famdouma.nl>2015-07-25 21:14:43 +0200
committerRoeland Jago Douma <roeland@famdouma.nl>2015-08-02 10:22:26 +0200
commita4822f9f9a0a1cad9c9f5ff52cf624f9d6b9df36 (patch)
tree576b5dced84ad621c5d8005fdc29fd4a00a5d86b /apps/provisioning_api/appinfo
parent97d79202ac628b004f5d9e167b5b8c9a36da9906 (diff)
downloadnextcloud-server-a4822f9f9a0a1cad9c9f5ff52cf624f9d6b9df36.tar.gz
nextcloud-server-a4822f9f9a0a1cad9c9f5ff52cf624f9d6b9df36.zip
[provisioning_api] Move part of apps to OCP
Diffstat (limited to 'apps/provisioning_api/appinfo')
-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 e656445abe5..2ee3a185dae 100644
--- a/apps/provisioning_api/appinfo/routes.php
+++ b/apps/provisioning_api/appinfo/routes.php
@@ -56,7 +56,9 @@ API::register('delete', '/cloud/groups/{groupid}', [$groups, 'deleteGroup'], 'pr
API::register('get', '/cloud/groups/{groupid}/subadmins', [$groups, 'getSubAdminsOfGroup'], 'provisioning_api', API::ADMIN_AUTH);
// Apps
-$apps = new \OCA\Provisioning_API\Apps();
+$apps = new \OCA\Provisioning_API\Apps(
+ \OC::$server->getAppManager()
+);
API::register('get', '/cloud/apps', [$apps, 'getApps'], 'provisioning_api', API::ADMIN_AUTH);
API::register('get', '/cloud/apps/{appid}', [$apps, 'getAppInfo'], 'provisioning_api', API::ADMIN_AUTH);
API::register('post', '/cloud/apps/{appid}', [$apps, 'enable'], 'provisioning_api', API::ADMIN_AUTH);