summaryrefslogtreecommitdiffstats
path: root/ocs/v1.php
diff options
context:
space:
mode:
authorRoeland Jago Douma <roeland@famdouma.nl>2020-07-06 16:00:58 +0200
committerRoeland Jago Douma <roeland@famdouma.nl>2020-11-17 14:08:20 +0100
commit72a9c35be3dd7a1e54a1ef6a4ed29448a08c1a86 (patch)
treed9e23247a80262858b0ecb81838db6fcdb3ddd76 /ocs/v1.php
parent5acabcf5cbcb1db92fd9661bc1ed5735ae316323 (diff)
downloadnextcloud-server-72a9c35be3dd7a1e54a1ef6a4ed29448a08c1a86.tar.gz
nextcloud-server-72a9c35be3dd7a1e54a1ef6a4ed29448a08c1a86.zip
Remove some IRouter methods
This is not the end. IRouter needs to burn. But it is a start. 🎵 we didn't start the fire 🎵 Signed-off-by: Roeland Jago Douma <roeland@famdouma.nl>
Diffstat (limited to 'ocs/v1.php')
-rw-r--r--ocs/v1.php2
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();