Allow setting defaults and requirements for the api route

This commit is contained in:
Bart Visscher 2013-06-28 17:25:10 +02:00
parent 6127fee5aa
commit 8ca0a957ad

View file

@ -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();
}