diff options
author | Roeland Jago Douma <roeland@famdouma.nl> | 2016-08-14 20:46:33 +0200 |
---|---|---|
committer | Roeland Jago Douma <roeland@famdouma.nl> | 2016-08-18 09:37:09 +0200 |
commit | 6bc1c6590cf0c0a470d220539f33d1aa4237115d (patch) | |
tree | 117888d3a2591a644958379029a672c1811958c8 /core | |
parent | 3e7710c0d8e30dc9f020194959b657a89c08c095 (diff) | |
download | nextcloud-server-6bc1c6590cf0c0a470d220539f33d1aa4237115d.tar.gz nextcloud-server-6bc1c6590cf0c0a470d220539f33d1aa4237115d.zip |
Move /config over to Core OCSController
Diffstat (limited to 'core')
-rw-r--r-- | core/Controller/OCSController.php | 17 | ||||
-rw-r--r-- | core/routes.php | 1 |
2 files changed, 18 insertions, 0 deletions
diff --git a/core/Controller/OCSController.php b/core/Controller/OCSController.php index 8eee52096c2..05d2a34bac4 100644 --- a/core/Controller/OCSController.php +++ b/core/Controller/OCSController.php @@ -53,6 +53,23 @@ class OCSController extends \OCP\AppFramework\OCSController { } /** + * @PublicPage + * + * @return DataResponse + */ + public function getConfig() { + $data = [ + 'version' => '1.7', + 'website' => 'ownCloud', + 'host' => $this->request->getServerHost(), + 'contact' => '', + 'ssl' => 'false', + ]; + + return new DataResponse($data); + } + + /** * @NoAdminRequired * @return DataResponse */ diff --git a/core/routes.php b/core/routes.php index b4868c14cf3..90b8b4d2ace 100644 --- a/core/routes.php +++ b/core/routes.php @@ -56,6 +56,7 @@ $application->registerRoutes($this, [ 'ocs' => [ ['root' => '/cloud', 'name' => 'OCS#getCapabilities', 'url' => '/capabilities', 'verb' => 'GET'], ['root' => '/cloud', 'name' => 'OCS#getCurrentUser', 'url' => '/user', 'verb' => 'GET'], + ['root' => '', 'name' => 'OCS#getConfig', 'url' => '/config', 'verb' => 'GET'], ], ]); |