diff options
author | Thomas Müller <thomas.mueller@tmit.eu> | 2014-02-18 14:51:59 +0100 |
---|---|---|
committer | Thomas Müller <thomas.mueller@tmit.eu> | 2014-02-18 14:51:59 +0100 |
commit | 8f5c641cd854d27abc876db8dda4ec0025981186 (patch) | |
tree | d1df2993c6f9b72f94dea32ab4449cefa66cb565 /ocs | |
parent | 79fc4f312604feb20f96378d052703ec4768ecad (diff) | |
download | nextcloud-server-8f5c641cd854d27abc876db8dda4ec0025981186.tar.gz nextcloud-server-8f5c641cd854d27abc876db8dda4ec0025981186.zip |
load all apps in ocs/v1.php
Diffstat (limited to 'ocs')
-rw-r--r-- | ocs/v1.php | 8 |
1 files changed, 7 insertions, 1 deletions
diff --git a/ocs/v1.php b/ocs/v1.php index 1c7d1c89768..93d9c67b045 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) { |