summaryrefslogtreecommitdiffstats
path: root/apps/files_versions
diff options
context:
space:
mode:
authorThomas Müller <thomas.mueller@tmit.eu>2014-04-29 17:07:10 +0200
committerThomas Müller <thomas.mueller@tmit.eu>2014-05-02 17:02:57 +0200
commit20893cc3b335049a144a53be24eaacb2e33a1480 (patch)
treec0795a4246bf6c38ec8b8ad9461e25b17ec9af74 /apps/files_versions
parent49d9631eee1616b9ae2846886c3d428236c5b81a (diff)
downloadnextcloud-server-20893cc3b335049a144a53be24eaacb2e33a1480.tar.gz
nextcloud-server-20893cc3b335049a144a53be24eaacb2e33a1480.zip
Images on public sharing get downscaled to increase use experience - this will speed up loading time
- adding keep aspect to core/ajax/preview.php - remove duplicate method Preview::show() - no more hard coded mimetype of preview - remove .png from the preview urls - keep old route preview.png for backwards compatibility - aspect preserving previews are now cached
Diffstat (limited to 'apps/files_versions')
-rw-r--r--apps/files_versions/appinfo/routes.php3
1 files changed, 2 insertions, 1 deletions
diff --git a/apps/files_versions/appinfo/routes.php b/apps/files_versions/appinfo/routes.php
index 8d2abaa89e5..80fe0e5d617 100644
--- a/apps/files_versions/appinfo/routes.php
+++ b/apps/files_versions/appinfo/routes.php
@@ -8,7 +8,8 @@
// Register with the capabilities API
OC_API::register('get', '/cloud/capabilities', array('OCA\Files_Versions\Capabilities', 'getCapabilities'), 'files_versions', OC_API::USER_AUTH);
-$this->create('core_ajax_versions_preview', '/preview.png')->action(
+/** @var $this \OCP\Route\IRouter */
+$this->create('core_ajax_versions_preview', '/preview')->action(
function() {
require_once __DIR__ . '/../ajax/preview.php';
});