From 575875e8d03e1396bcdb1fac75a7c6076fd92287 Mon Sep 17 00:00:00 2001 From: Roeland Jago Douma Date: Tue, 9 Aug 2016 10:21:20 +0200 Subject: Allow OCS routes in Core and Settings --- core/Controller/OCSController.php | 44 +++++++++++++++++++++++++++++++++++++++ 1 file changed, 44 insertions(+) create mode 100644 core/Controller/OCSController.php (limited to 'core/Controller/OCSController.php') diff --git a/core/Controller/OCSController.php b/core/Controller/OCSController.php new file mode 100644 index 00000000000..278a16186bf --- /dev/null +++ b/core/Controller/OCSController.php @@ -0,0 +1,44 @@ +capabilitiesManager = $capabilitiesManager; + } + + public function getCapabilities() { + $result = []; + list($major, $minor, $micro) = \OCP\Util::getVersion(); + $result['version'] = array( + 'major' => $major, + 'minor' => $minor, + 'micro' => $micro, + 'string' => \OC_Util::getVersionString(), + 'edition' => \OC_Util::getEditionString(), + ); + + $result['capabilities'] = $this->capabilitiesManager->getCapabilities(); + + return new DataResponse(['data' => $result]); + } +} \ No newline at end of file -- cgit v1.2.3