diff --git a/lib/api.php b/lib/api.php
index 757e53226b92bc8f26e2aa010143f1bc84540e55..00a3dc108e16b96f4cdb6bf13d36484c956bcef9 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){
@@ -104,21 +100,6 @@ class OC_API {
 		return $finalresponse;
 	}
 	
-	/**
-	 * 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
diff --git a/lib/router.php b/lib/router.php
index f037ecdfef455b1977af37dddc20bfa3361b7784..f76f64ac82ba6a1b2eaceb17de636b71e63ab940 100644
--- a/lib/router.php
+++ b/lib/router.php
@@ -16,6 +16,21 @@ class OC_Router {
 	protected $collections = array();
 	protected $collection = null;
 
+	/**
+	 * loads the api routes
+	 */
+	public 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 ocs routes
+		require_once(OC::$SERVERROOT.'/ocs/routes.php');
+	}
+
 	public function useCollection($name) {
 		if (!isset($this->collections[$name])) {
 			$this->collections[$name] = new RouteCollection();