aboutsummaryrefslogtreecommitdiffstats
path: root/lib/private/api.php
diff options
context:
space:
mode:
authorJörn Friedrich Dreyer <jfd@butonic.de>2014-07-01 14:21:20 +0200
committerJörn Friedrich Dreyer <jfd@butonic.de>2014-07-01 14:21:20 +0200
commitdd20b9f6726db4ddc2d5905705e01544f4f4fd08 (patch)
treed34ea30c7be43e24f8642d8c1fab49bad986147a /lib/private/api.php
parent12420d08e24a77e6aa484f8f219470b81e5ad20a (diff)
downloadnextcloud-server-dd20b9f6726db4ddc2d5905705e01544f4f4fd08.tar.gz
nextcloud-server-dd20b9f6726db4ddc2d5905705e01544f4f4fd08.zip
reset collection to 'root' after adding a route to the api
Diffstat (limited to 'lib/private/api.php')
-rw-r--r--lib/private/api.php1
1 files changed, 1 insertions, 0 deletions
diff --git a/lib/private/api.php b/lib/private/api.php
index e9c144564f0..75d87b333d5 100644
--- a/lib/private/api.php
+++ b/lib/private/api.php
@@ -72,6 +72,7 @@ class OC_API {
->requirements($requirements)
->action('OC_API', 'call');
self::$actions[$name] = array();
+ OC::$server->getRouter()->useCollection('root');
}
self::$actions[$name][] = array('app' => $app, 'action' => $action, 'authlevel' => $authLevel);
}