summaryrefslogtreecommitdiffstats
path: root/lib/router.php
diff options
context:
space:
mode:
authorBart Visscher <bartv@thisnet.nl>2012-08-02 17:59:18 +0200
committerBart Visscher <bartv@thisnet.nl>2012-08-10 23:31:11 +0200
commit72b2324b68c51baf140c6fab7957b59c31de4832 (patch)
tree9c5667ecbfaca027c6bd3fe0c28e0477ea38245c /lib/router.php
parent3722928c46d0e4ec1935e4da4087b76aee24dd5d (diff)
downloadnextcloud-server-72b2324b68c51baf140c6fab7957b59c31de4832.tar.gz
nextcloud-server-72b2324b68c51baf140c6fab7957b59c31de4832.zip
Move loading of routes to OC::getRouter function
Diffstat (limited to 'lib/router.php')
-rw-r--r--lib/router.php7
1 files changed, 6 insertions, 1 deletions
diff --git a/lib/router.php b/lib/router.php
index 5dd51e79156..a721255f297 100644
--- a/lib/router.php
+++ b/lib/router.php
@@ -16,10 +16,15 @@ class OC_Router {
protected $collections = array();
protected $collection = null;
+ public function __construct() {
+ // TODO cache
+ $this->loadRoutes();
+ }
+
/**
* loads the api routes
*/
- public function loadRoutes(){
+ public function loadRoutes() {
// TODO cache
foreach(OC_APP::getEnabledApps() as $app){
$file = OC_App::getAppPath($app).'/appinfo/routes.php';