Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/nextcloud/server.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--core/Controller/OCSController.php17
-rw-r--r--core/routes.php1
-rw-r--r--ocs/routes.php8
3 files changed, 18 insertions, 8 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'],
],
]);
diff --git a/ocs/routes.php b/ocs/routes.php
index ae2ef05adcd..d14f32e045c 100644
--- a/ocs/routes.php
+++ b/ocs/routes.php
@@ -29,14 +29,6 @@
use OCP\API;
-// Config
-API::register(
- 'get',
- '/config',
- array('OC_OCS_Config', 'apiConfig'),
- 'core',
- API::GUEST_AUTH
- );
// Person
API::register(
'post',