Skip to content
Snippets Groups Projects
Commit dd20b9f6 authored by Jörn Friedrich Dreyer's avatar Jörn Friedrich Dreyer
Browse files

reset collection to 'root' after adding a route to the api

parent 12420d08
No related branches found
No related tags found
No related merge requests found
......@@ -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);
}
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment