summaryrefslogtreecommitdiffstats
path: root/lib/api.php
diff options
context:
space:
mode:
authorBart Visscher <bartv@thisnet.nl>2012-08-02 21:51:31 +0200
committerBart Visscher <bartv@thisnet.nl>2012-08-02 21:51:31 +0200
commit4b9200f6f7a571c251ef89599e1af9e25e2e75f4 (patch)
tree3ba1e03e197c2e02fa8ec63a2738a3b0f08e3fc4 /lib/api.php
parent6ba2623485655460440a972e34a8a2a2fda02821 (diff)
downloadnextcloud-server-4b9200f6f7a571c251ef89599e1af9e25e2e75f4.tar.gz
nextcloud-server-4b9200f6f7a571c251ef89599e1af9e25e2e75f4.zip
Routing: combine all routes into one set
Diffstat (limited to 'lib/api.php')
-rw-r--r--lib/api.php1
1 files changed, 1 insertions, 0 deletions
diff --git a/lib/api.php b/lib/api.php
index 1ef4e090e37..05d34ffe870 100644
--- a/lib/api.php
+++ b/lib/api.php
@@ -44,6 +44,7 @@ class OC_API {
$name = strtolower($method).$url;
$name = str_replace(array('/', '{', '}'), '_', $name);
if(!isset(self::$actions[$name])){
+ OC::getRouter()->useCollection('ocs');
OC::getRouter()->create($name, $url.'.{_format}')
->method($method)
->defaults(array('_format' => 'xml') + $defaults)