Skip to content
Snippets Groups Projects
Commit 12420d08 authored by Jörn Friedrich Dreyer's avatar Jörn Friedrich Dreyer
Browse files

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

parent 75a5746b
Branches
No related tags found
No related merge requests found
......@@ -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);
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment