Skip to content
Snippets Groups Projects
Commit c17f4153 authored by Robin Appelman's avatar Robin Appelman
Browse files

Only load core routes for ocs and settings

parent 9e89ad07
Branches
No related tags found
No related merge requests found
......@@ -178,9 +178,10 @@ class Router implements IRouter {
*/
public function match($url) {
if (substr($url, 0, 6) === '/apps/') {
// empty string / 'apps' / $app / rest of the route
list(, , $app,) = explode('/', $url, 4);
$this->loadRoutes($app);
} else if(substr($url, 0, 6) === '/core/') {
} else if(substr($url, 0, 6) === '/core/' or substr($url, 0, 5) === '/ocs/' or substr($url, 0, 10) === '/settings/') {
$this->loadRoutes('core');
} else {
$this->loadRoutes();
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment