summaryrefslogtreecommitdiffstats
path: root/lib/api.php
diff options
context:
space:
mode:
authorBart Visscher <bartv@thisnet.nl>2012-07-30 20:48:03 +0200
committerBart Visscher <bartv@thisnet.nl>2012-07-30 21:19:02 +0200
commit0271bfa3b7849de64bfbb9dd96313fc35da14e29 (patch)
tree8cd397bd6303396a19915577adeb27af56900cf1 /lib/api.php
parent372fdf8077634d1b82db326db61a204ef6512892 (diff)
downloadnextcloud-server-0271bfa3b7849de64bfbb9dd96313fc35da14e29.tar.gz
nextcloud-server-0271bfa3b7849de64bfbb9dd96313fc35da14e29.zip
Move loading of routes to OC_Router
Diffstat (limited to 'lib/api.php')
-rw-r--r--lib/api.php19
1 files changed, 0 insertions, 19 deletions
diff --git a/lib/api.php b/lib/api.php
index 757e53226b9..00a3dc108e1 100644
--- a/lib/api.php
+++ b/lib/api.php
@@ -53,10 +53,6 @@ class OC_API {
* @param array $parameters
*/
public static function call($parameters){
-
- // Get the routes
- self::loadRoutes();
-
$name = $parameters['_name'];
// Loop through registered actions
foreach(self::$actions[$name] as $action){
@@ -105,21 +101,6 @@ class OC_API {
}
/**
- * loads the api routes
- */
- private static function loadRoutes(){
- // TODO cache
- foreach(OC_APP::getEnabledApps() as $app){
- $file = OC_App::getAppPath($app).'/appinfo/routes.php';
- if(file_exists($file)){
- require_once($file);
- }
- }
- // include core routes
- require_once(OC::$SERVERROOT.'ocs/routes.php');
- }
-
- /**
* respond to a call
* @param int|array $response the response
* @param string $format the format xml|json