summaryrefslogtreecommitdiffstats
path: root/core/routes.php
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 /core/routes.php
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 'core/routes.php')
-rw-r--r--core/routes.php2
1 files changed, 2 insertions, 0 deletions
diff --git a/core/routes.php b/core/routes.php
index 74be8806120..5368fd45645 100644
--- a/core/routes.php
+++ b/core/routes.php
@@ -66,6 +66,8 @@ $this->create('core_tags_delete', '/tags/{type}/delete')
$this->create('js_config', '/core/js/oc.js')
->actionInclude('core/js/config.php');
// Routing
+$this->create('core_ajax_preview', '/core/preview')
+ ->actionInclude('core/ajax/preview.php');
$this->create('core_ajax_preview', '/core/preview.png')
->actionInclude('core/ajax/preview.php');
$this->create('core_lostpassword_index', '/lostpassword/')