diff options
author | Thomas Müller <thomas.mueller@tmit.eu> | 2014-03-17 21:07:05 +0100 |
---|---|---|
committer | Thomas Müller <thomas.mueller@tmit.eu> | 2014-03-17 21:07:05 +0100 |
commit | 756bbe87866471a25e1d437b60eb895d515fc103 (patch) | |
tree | 7eb0b65f0aa481878451e515c6fb62a5c43bd0a9 /lib/private/api.php | |
parent | 6fbf3dd7c4e64a68d2b8a0a2c24a1b92de7868b1 (diff) | |
parent | 4a2b16d76dafbd83c3f8c137cba9edda375b206a (diff) | |
download | nextcloud-server-756bbe87866471a25e1d437b60eb895d515fc103.tar.gz nextcloud-server-756bbe87866471a25e1d437b60eb895d515fc103.zip |
Merge pull request #7649 from owncloud/routing-public
Move routing classes to an interface and expose it in the public api
Diffstat (limited to 'lib/private/api.php')
-rw-r--r-- | lib/private/api.php | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/lib/private/api.php b/lib/private/api.php index e8e54e375e9..b3b5eb1067b 100644 --- a/lib/private/api.php +++ b/lib/private/api.php @@ -65,8 +65,8 @@ class OC_API { $name = strtolower($method).$url; $name = str_replace(array('/', '{', '}'), '_', $name); if(!isset(self::$actions[$name])) { - OC::getRouter()->useCollection('ocs'); - OC::getRouter()->create($name, $url) + OC::$server->getRouter()->useCollection('ocs'); + OC::$server->getRouter()->create($name, $url) ->method($method) ->defaults($defaults) ->requirements($requirements) |