mirror of
https://github.com/nextcloud/server.git
synced 2026-06-14 19:20:35 -04:00
change order of registering api and capabilities to fix file version previews
This commit is contained in:
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);
|
||||
|
|
|
|||
Loading…
Reference in a new issue