diff options
author | Bart Visscher <bartv@thisnet.nl> | 2012-07-30 21:03:41 +0200 |
---|---|---|
committer | Bart Visscher <bartv@thisnet.nl> | 2012-07-30 21:19:02 +0200 |
commit | 7a24f0cd8d28e60360127da19e40bff4b2e04168 (patch) | |
tree | 43ebd6c9e00679536c565d69e561f631d352ad34 /ocs/v1.php | |
parent | 180bd69dbb21dc6e53533a7d93972445b2ff922e (diff) | |
download | nextcloud-server-7a24f0cd8d28e60360127da19e40bff4b2e04168.tar.gz nextcloud-server-7a24f0cd8d28e60360127da19e40bff4b2e04168.zip |
Make calling ocs/v1.php/config work
Diffstat (limited to 'ocs/v1.php')
-rw-r--r-- | ocs/v1.php | 12 |
1 files changed, 10 insertions, 2 deletions
diff --git a/ocs/v1.php b/ocs/v1.php index ab0dc80f4ba..4580221e600 100644 --- a/ocs/v1.php +++ b/ocs/v1.php @@ -22,5 +22,13 @@ */ require_once('../lib/base.php'); -@ob_clean(); -OC_OCS::handle(); +use Symfony\Component\Routing\Exception\ResourceNotFoundException; + +OC::$router->useCollection('ocs'); +OC::$router->loadRoutes(); + +try { + OC::$router->match($_SERVER['PATH_INFO']); +} catch (ResourceNotFoundException $e) { + OC_OCS::notFound(); +} |