load all apps in ocs/v1.php
This commit is contained in:
parent
79fc4f3126
commit
8f5c641cd8
1 changed files with 7 additions and 1 deletions
|
@ -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\ResourceNotFoundException;
|
||||||
use Symfony\Component\Routing\Exception\MethodNotAllowedException;
|
use Symfony\Component\Routing\Exception\MethodNotAllowedException;
|
||||||
|
|
||||||
try {
|
try {
|
||||||
|
// load all apps to get all api routes properly setup
|
||||||
|
OC_App::loadApps();
|
||||||
|
|
||||||
|
// match the request
|
||||||
OC::getRouter()->match('/ocs'.OC_Request::getRawPathInfo());
|
OC::getRouter()->match('/ocs'.OC_Request::getRawPathInfo());
|
||||||
|
|
||||||
} catch (ResourceNotFoundException $e) {
|
} catch (ResourceNotFoundException $e) {
|
||||||
OC_OCS::notFound();
|
OC_OCS::notFound();
|
||||||
} catch (MethodNotAllowedException $e) {
|
} catch (MethodNotAllowedException $e) {
|
||||||
|
|
Loading…
Reference in a new issue