diff options
author | Bart Visscher <bartv@thisnet.nl> | 2012-08-02 21:51:31 +0200 |
---|---|---|
committer | Bart Visscher <bartv@thisnet.nl> | 2012-08-02 21:51:31 +0200 |
commit | 4b9200f6f7a571c251ef89599e1af9e25e2e75f4 (patch) | |
tree | 3ba1e03e197c2e02fa8ec63a2738a3b0f08e3fc4 /ocs | |
parent | 6ba2623485655460440a972e34a8a2a2fda02821 (diff) | |
download | nextcloud-server-4b9200f6f7a571c251ef89599e1af9e25e2e75f4.tar.gz nextcloud-server-4b9200f6f7a571c251ef89599e1af9e25e2e75f4.zip |
Routing: combine all routes into one set
Diffstat (limited to 'ocs')
-rw-r--r-- | ocs/v1.php | 4 |
1 files changed, 1 insertions, 3 deletions
diff --git a/ocs/v1.php b/ocs/v1.php index 938a57009f7..ce6bad3d450 100644 --- a/ocs/v1.php +++ b/ocs/v1.php @@ -25,10 +25,8 @@ require_once('../lib/base.php'); use Symfony\Component\Routing\Exception\ResourceNotFoundException; use Symfony\Component\Routing\Exception\MethodNotAllowedException; -OC::getRouter()->useCollection('ocs'); - try { - OC::getRouter()->match($_SERVER['PATH_INFO']); + OC::getRouter()->match('/ocs'.$_SERVER['PATH_INFO']); } catch (ResourceNotFoundException $e) { OC_OCS::notFound(); } catch (MethodNotAllowedException $e) { |