summaryrefslogtreecommitdiffstats
path: root/apps/files_versions
diff options
context:
space:
mode:
authorThomas Müller <thomas.mueller@tmit.eu>2014-07-04 15:25:24 +0200
committerThomas Müller <thomas.mueller@tmit.eu>2014-07-04 15:25:24 +0200
commit2327d41b11e11ca0553c829b5d7adeb0f000a474 (patch)
tree8ed247cc2588e3553a32fe413dfaaaa05a9002b8 /apps/files_versions
parent2b76db81ea81693c1d2754e882fc1f372e204c37 (diff)
parent5a588333b236519aed449a309be818d0686edb3a (diff)
downloadnextcloud-server-2327d41b11e11ca0553c829b5d7adeb0f000a474.tar.gz
nextcloud-server-2327d41b11e11ca0553c829b5d7adeb0f000a474.zip
Merge pull request #9269 from owncloud/fix_versions_preview
change order of registering api and capabilities to fix file version previews
Diffstat (limited to 'apps/files_versions')
-rw-r--r--apps/files_versions/appinfo/routes.php6
1 files changed, 3 insertions, 3 deletions
diff --git a/apps/files_versions/appinfo/routes.php b/apps/files_versions/appinfo/routes.php
index 80fe0e5d617..b9bb00dae55 100644
--- a/apps/files_versions/appinfo/routes.php
+++ b/apps/files_versions/appinfo/routes.php
@@ -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);