diff --git a/lib/api.php b/lib/api.php index eaa2bb42f8c4bdbf001079783a0b290b3aec54ea..cf40167b07a0bcd3fc8a552a7ac17cbf117efdec 100644 --- a/lib/api.php +++ b/lib/api.php @@ -53,6 +53,15 @@ class OC_API { */ public function call($parameters){ + // Get the routes + // TODO cache + foreach(OC_APP::getEnabledApps() as $app){ + $file = OC_App::getAppPath($app).'/appinfo/routes.php'; + if(file_exists($file)){ + require_once($file); + } + } + $name = $parameters['_name']; $response = array(); // Loop through registered actions