summaryrefslogtreecommitdiffstats
path: root/ocs/v1.php
diff options
context:
space:
mode:
Diffstat (limited to 'ocs/v1.php')
-rw-r--r--ocs/v1.php6
1 files changed, 5 insertions, 1 deletions
diff --git a/ocs/v1.php b/ocs/v1.php
index 5d360c530a9..62a3511e611 100644
--- a/ocs/v1.php
+++ b/ocs/v1.php
@@ -21,11 +21,15 @@
*
*/
-require_once('../lib/base.php');
+require_once '../lib/base.php';
+
use Symfony\Component\Routing\Exception\ResourceNotFoundException;
use Symfony\Component\Routing\Exception\MethodNotAllowedException;
try {
+ // load all apps to get all api routes properly setup
+ OC_App::loadApps();
+
OC::$server->getRouter()->match('/ocs'.OC_Request::getRawPathInfo());
} catch (ResourceNotFoundException $e) {
OC_API::setContentType();