Remove dead OCS register code

This commit is contained in:
Roeland Jago Douma 2016-09-02 15:13:44 +02:00
parent 93624c3028
commit 3a45475592
No known key found for this signature in database
GPG Key ID: 1E152838F164D13B
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.