diff options
author | Thomas Müller <thomas.mueller@tmit.eu> | 2013-11-25 11:36:33 +0100 |
---|---|---|
committer | Thomas Müller <thomas.mueller@tmit.eu> | 2013-11-25 11:36:33 +0100 |
commit | 993fea2f05ae300fd1036d2a82ba02413f2649d4 (patch) | |
tree | 0c30b2b733d9ab0a8fe35a5117dc8866e503bfe8 /lib/public | |
parent | aeefe48cba49a869bfe93cdf10cc3da79914e080 (diff) | |
download | nextcloud-server-993fea2f05ae300fd1036d2a82ba02413f2649d4.tar.gz nextcloud-server-993fea2f05ae300fd1036d2a82ba02413f2649d4.zip |
fix appframework routing
Diffstat (limited to 'lib/public')
-rw-r--r-- | lib/public/appframework/app.php | 11 |
1 files changed, 11 insertions, 0 deletions
diff --git a/lib/public/appframework/app.php b/lib/public/appframework/app.php index 6ac48bf102a..1f82f8da889 100644 --- a/lib/public/appframework/app.php +++ b/lib/public/appframework/app.php @@ -21,6 +21,7 @@ */ namespace OCP\AppFramework; +use OC\AppFramework\routing\RouteConfig; /** @@ -48,6 +49,16 @@ class App { } /** + * This function is to be called + * @param \OC_Router $router + * @param array $routes + */ + public function registerRoutes($router, $routes) { + $routeConfig = new RouteConfig($this->container, $router, $routes); + $routeConfig->register(); + } + + /** * This function is called by the routing component to fire up the frameworks dispatch mechanism. * * Example code in routes.php of the task app: |