diff options
author | Roeland Jago Douma <roeland@famdouma.nl> | 2015-07-25 21:14:43 +0200 |
---|---|---|
committer | Roeland Jago Douma <roeland@famdouma.nl> | 2015-08-02 10:22:26 +0200 |
commit | a4822f9f9a0a1cad9c9f5ff52cf624f9d6b9df36 (patch) | |
tree | 576b5dced84ad621c5d8005fdc29fd4a00a5d86b /apps/provisioning_api/appinfo | |
parent | 97d79202ac628b004f5d9e167b5b8c9a36da9906 (diff) | |
download | nextcloud-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.php | 4 |
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); |