summaryrefslogtreecommitdiffstats
path: root/lib/api.php
diff options
context:
space:
mode:
authorBart Visscher <bartv@thisnet.nl>2013-06-28 17:25:10 +0200
committerBart Visscher <bartv@thisnet.nl>2013-06-28 17:25:10 +0200
commit8ca0a957add3b01efa5bed3762823fe9449414cf (patch)
treec650ebb767ce68c0a238410efcd7838c4f4b10eb /lib/api.php
parent6127fee5aa012e58c124b00f159afd3d3d95d8ce (diff)
downloadnextcloud-server-8ca0a957add3b01efa5bed3762823fe9449414cf.tar.gz
nextcloud-server-8ca0a957add3b01efa5bed3762823fe9449414cf.zip
Allow setting defaults and requirements for the api route
Diffstat (limited to 'lib/api.php')
-rw-r--r--lib/api.php2
1 files changed, 2 insertions, 0 deletions
diff --git a/lib/api.php b/lib/api.php
index fc76836995b..31f3f968d9b 100644
--- a/lib/api.php
+++ b/lib/api.php
@@ -67,6 +67,8 @@ class OC_API {
OC::getRouter()->useCollection('ocs');
OC::getRouter()->create($name, $url)
->method($method)
+ ->defaults($defaults)
+ ->requirements($requirements)
->action('OC_API', 'call');
self::$actions[$name] = array();
}