From 8ca0a957add3b01efa5bed3762823fe9449414cf Mon Sep 17 00:00:00 2001 From: Bart Visscher Date: Fri, 28 Jun 2013 17:25:10 +0200 Subject: [PATCH] Allow setting defaults and requirements for the api route --- lib/api.php | 2 ++ 1 file changed, 2 insertions(+) diff --git a/lib/api.php b/lib/api.php index fc76836995..31f3f968d9 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(); }