change order of registering api and capabilities to fix file version previews

remotes/origin/fix-10825
Jörn Friedrich Dreyer 2014-06-27 19:22:10 +07:00
parent 75a5746b70
commit 12420d08e2
1 changed files with 3 additions and 3 deletions

@ -5,11 +5,11 @@
* See the COPYING-README file.
*/
// Register with the capabilities API
OC_API::register('get', '/cloud/capabilities', array('OCA\Files_Versions\Capabilities', 'getCapabilities'), 'files_versions', OC_API::USER_AUTH);
/** @var $this \OCP\Route\IRouter */
$this->create('core_ajax_versions_preview', '/preview')->action(
function() {
require_once __DIR__ . '/../ajax/preview.php';
});
// Register with the capabilities API
OC_API::register('get', '/cloud/capabilities', array('OCA\Files_Versions\Capabilities', 'getCapabilities'), 'files_versions', OC_API::USER_AUTH);