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:
authorBernhard Posselt <nukeawhale@gmail.com>2013-01-07 18:48:45 +0400
committerBernhard Posselt <nukeawhale@gmail.com>2013-01-07 18:48:45 +0400
commit5ccbfd907942648a9b50131bb9a43122b8147e0d (patch)
treee67399fe072e5613458f49011c3c0c3a1be51d88 /lib/router.php
parentf80bc4ed5370af66e5275dd9fb92d1a61d38b46b (diff)
readded ocs routes
Diffstat (limited to 'lib/router.php')
-rw-r--r--lib/router.php5
1 files changed, 5 insertions, 0 deletions
diff --git a/lib/router.php b/lib/router.php
index 070d31999b1..504d2f357c5 100644
--- a/lib/router.php
+++ b/lib/router.php
@@ -58,6 +58,11 @@ class OC_Router {
* loads the api routes
*/
public function loadRoutes() {
+ // include ocs routes
+ require_once(OC::$SERVERROOT.'/ocs/routes.php');
+ $collection = $this->getCollection('ocs');
+ $this->root->addCollection($collection, '/ocs');
+
foreach($this->getRoutingFiles() as $app => $file) {
$this->useCollection($app);
require_once $file;