readded ocs routes

This commit is contained in:
Bernhard Posselt 2013-01-07 15:48:45 +01:00
parent f80bc4ed53
commit 5ccbfd9079

View file

@ -58,6 +58,11 @@ class OC_Router {
* loads the api routes
*/
public function loadRoutes() {
// include ocs routes
require_once(OC::$SERVERROOT.'/ocs/routes.php');
$collection = $this->getCollection('ocs');
$this->root->addCollection($collection, '/ocs');
foreach($this->getRoutingFiles() as $app => $file) {
$this->useCollection($app);
require_once $file;