diff options
author | Bart Visscher <bartv@thisnet.nl> | 2012-08-02 17:59:18 +0200 |
---|---|---|
committer | Bart Visscher <bartv@thisnet.nl> | 2012-08-10 23:31:11 +0200 |
commit | 72b2324b68c51baf140c6fab7957b59c31de4832 (patch) | |
tree | 9c5667ecbfaca027c6bd3fe0c28e0477ea38245c /lib/router.php | |
parent | 3722928c46d0e4ec1935e4da4087b76aee24dd5d (diff) | |
download | nextcloud-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.php | 7 |
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'; |