mirror of
https://github.com/nextcloud/server.git
synced 2026-06-13 18:50:47 -04:00
reset collection to 'root' after adding a route to the api
This commit is contained in:
parent
12420d08e2
commit
dd20b9f672
1 changed files with 1 additions and 0 deletions
|
|
@ -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);
|
||||
}
|
||||
|
|
|
|||
Loading…
Reference in a new issue