From 8f5c641cd854d27abc876db8dda4ec0025981186 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Thomas=20M=C3=BCller?= Date: Tue, 18 Feb 2014 14:51:59 +0100 Subject: [PATCH] load all apps in ocs/v1.php --- ocs/v1.php | 8 +++++++- 1 file changed, 7 insertions(+), 1 deletion(-) diff --git a/ocs/v1.php b/ocs/v1.php index 1c7d1c8976..93d9c67b04 100644 --- a/ocs/v1.php +++ b/ocs/v1.php @@ -21,12 +21,18 @@ * */ -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(); + + // match the request OC::getRouter()->match('/ocs'.OC_Request::getRawPathInfo()); + } catch (ResourceNotFoundException $e) { OC_OCS::notFound(); } catch (MethodNotAllowedException $e) {