Allow setting defaults and requirements for the api route
This commit is contained in:
parent
6127fee5aa
commit
8ca0a957ad
1 changed files with 2 additions and 0 deletions
|
@ -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();
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue