summaryrefslogtreecommitdiffstats
path: root/lib/private/Route
diff options
context:
space:
mode:
authorRoeland Jago Douma <roeland@famdouma.nl>2016-08-09 10:21:20 +0200
committerRoeland Jago Douma <roeland@famdouma.nl>2016-08-09 20:56:31 +0200
commit575875e8d03e1396bcdb1fac75a7c6076fd92287 (patch)
treeffac7dadcef7ade1014bdc072a30408e9e8262bd /lib/private/Route
parent5214b62d55b3907eb2da7c8e51a3c0c6cd09a00f (diff)
downloadnextcloud-server-575875e8d03e1396bcdb1fac75a7c6076fd92287.tar.gz
nextcloud-server-575875e8d03e1396bcdb1fac75a7c6076fd92287.zip
Allow OCS routes in Core and Settings
Diffstat (limited to 'lib/private/Route')
-rw-r--r--lib/private/Route/Router.php5
1 files changed, 5 insertions, 0 deletions
diff --git a/lib/private/Route/Router.php b/lib/private/Route/Router.php
index 9df74184448..59f403d66e8 100644
--- a/lib/private/Route/Router.php
+++ b/lib/private/Route/Router.php
@@ -163,6 +163,11 @@ class Router implements IRouter {
$this->useCollection('root');
require_once __DIR__ . '/../../../settings/routes.php';
require_once __DIR__ . '/../../../core/routes.php';
+
+ // Also add the OCS collection
+ $collection = $this->getCollection('root.ocs');
+ $collection->addPrefix('/ocsapp');
+ $this->root->addCollection($collection);
}
if ($this->loaded) {
// include ocs routes, must be loaded last for /ocs prefix