diff options
author | Lukas Reschke <lukas@owncloud.com> | 2016-02-25 19:05:05 +0100 |
---|---|---|
committer | Lukas Reschke <lukas@owncloud.com> | 2016-02-25 19:05:05 +0100 |
commit | 0e19c6a3a0cdd92b9484ac1ebb7907dc81ec9ed6 (patch) | |
tree | 46597ccbe957283134b1258926a4ea9089ac179f /ocs-provider | |
parent | 3772a8acdb611b441bf2ea4fa3e0a37110a9d69f (diff) | |
download | nextcloud-server-0e19c6a3a0cdd92b9484ac1ebb7907dc81ec9ed6.tar.gz nextcloud-server-0e19c6a3a0cdd92b9484ac1ebb7907dc81ec9ed6.zip |
Fix formatting of response
The elements are expected to be within a `service` array as per specification.
Diffstat (limited to 'ocs-provider')
-rw-r--r-- | ocs-provider/provider.php | 6 |
1 files changed, 4 insertions, 2 deletions
diff --git a/ocs-provider/provider.php b/ocs-provider/provider.php index 921362b9e50..396b5b23fc6 100644 --- a/ocs-provider/provider.php +++ b/ocs-provider/provider.php @@ -40,7 +40,6 @@ class Provider extends \OCP\AppFramework\Controller { */ public function buildProviderList() { $services = [ - 'version' => 2, 'PRIVATE_DATA' => [ 'version' => 1, 'endpoints' => [ @@ -87,6 +86,9 @@ class Provider extends \OCP\AppFramework\Controller { ]; } - return new \OCP\AppFramework\Http\JSONResponse($services); + return new \OCP\AppFramework\Http\JSONResponse([ + 'version' => 2, + 'services' => $services, + ]); } } |