Merge pull request #1246 from nextcloud/federation_dead_code

Remove dead OCS register code
This commit is contained in:
Lukas Reschke 2016-09-02 16:36:54 +02:00 committed by GitHub
commit 3209a81e63
1 changed files with 0 additions and 34 deletions

View File

@ -99,40 +99,6 @@ class Application extends \OCP\AppFramework\App {
$container->registerMiddleware('addServerMiddleware');
}
/**
* 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.