diff options
Diffstat (limited to 'ocs')
-rw-r--r-- | ocs/v1.php | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/ocs/v1.php b/ocs/v1.php index f4ddc80804a..e5138576584 100644 --- a/ocs/v1.php +++ b/ocs/v1.php @@ -58,7 +58,7 @@ try { // load all apps to get all api routes properly setup OC_App::loadApps(); - OC::$server->getRouter()->match('/ocsapp'.\OC::$server->getRequest()->getRawPathInfo()); + OC::$server->get(\OC\Route\Router::class)->match('/ocsapp'.\OC::$server->getRequest()->getRawPathInfo()); } catch (ResourceNotFoundException $e) { OC_API::setContentType(); |