]> source.dussan.org Git - nextcloud-server.git/commitdiff
readded ocs routes
authorBernhard Posselt <nukeawhale@gmail.com>
Mon, 7 Jan 2013 14:48:45 +0000 (15:48 +0100)
committerBernhard Posselt <nukeawhale@gmail.com>
Mon, 7 Jan 2013 14:48:45 +0000 (15:48 +0100)
lib/router.php

index 070d31999b11f11188b24d2c34c9d03bbd5ad873..504d2f357c5f5ecbb73d748b98fd9851cbd91335 100644 (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;