commit
20be58bfdc
|
@ -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();
|
||||
}
|
||||
|
|
|
@ -26,7 +26,7 @@ use Symfony\Component\Routing\Exception\ResourceNotFoundException;
|
|||
use Symfony\Component\Routing\Exception\MethodNotAllowedException;
|
||||
|
||||
try {
|
||||
OC::getRouter()->match('/ocs'.$_SERVER['PATH_INFO']);
|
||||
OC::getRouter()->match('/ocs'.OC_Request::getRawPathInfo());
|
||||
} catch (ResourceNotFoundException $e) {
|
||||
OC_OCS::notFound();
|
||||
} catch (MethodNotAllowedException $e) {
|
||||
|
|
Loading…
Reference in New Issue