diff options
-rw-r--r-- | apps/federation/lib/AppInfo/Application.php | 34 |
1 files changed, 0 insertions, 34 deletions
diff --git a/apps/federation/lib/AppInfo/Application.php b/apps/federation/lib/AppInfo/Application.php index cdc6145dfb4..e5acab52857 100644 --- a/apps/federation/lib/AppInfo/Application.php +++ b/apps/federation/lib/AppInfo/Application.php @@ -100,40 +100,6 @@ class Application extends \OCP\AppFramework\App { } /** - * register OCS API Calls - */ - public function registerOCSApi() { - - $container = $this->getContainer(); - $server = $container->getServer(); - - $auth = new OCSAuthAPI( - $server->getRequest(), - $server->getSecureRandom(), - $server->getJobList(), - $container->query('TrustedServers'), - $container->query('DbHandler'), - $server->getLogger() - - ); - - API::register('get', - '/apps/federation/api/v1/shared-secret', - array($auth, 'getSharedSecret'), - 'federation', - API::GUEST_AUTH - ); - - API::register('post', - '/apps/federation/api/v1/request-shared-secret', - array($auth, 'requestSharedSecret'), - 'federation', - API::GUEST_AUTH - ); - - } - - /** * listen to federated_share_added hooks to auto-add new servers to the * list of trusted servers. */ |