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/Controller/OCSController.php | |
parent | 3e7710c0d8e30dc9f020194959b657a89c08c095 (diff) | |
download | nextcloud-server-6bc1c6590cf0c0a470d220539f33d1aa4237115d.tar.gz nextcloud-server-6bc1c6590cf0c0a470d220539f33d1aa4237115d.zip |
Move /config over to Core OCSController
Diffstat (limited to 'core/Controller/OCSController.php')
-rw-r--r-- | core/Controller/OCSController.php | 17 |
1 files changed, 17 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 */ |