Skip to content
Snippets Groups Projects
Commit 8ca0a957 authored by Bart Visscher's avatar Bart Visscher
Browse files

Allow setting defaults and requirements for the api route

parent 6127fee5
Branches
No related tags found
No related merge requests found
......@@ -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();
}
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment