aboutsummaryrefslogtreecommitdiffstats
path: root/apps/files/appinfo/routes.php
diff options
context:
space:
mode:
authorJohn Molakvoæ <skjnldsv@protonmail.com>2023-03-17 16:58:24 +0100
committerJohn Molakvoæ <skjnldsv@protonmail.com>2023-04-06 14:49:30 +0200
commitb761039cf1946cb64898b9117d1b15dd89080451 (patch)
tree27ef66889525e0fbe0f295d1bdc96fb3d8ac479c /apps/files/appinfo/routes.php
parent2ff1c00f556633c9c36a9328d4eb77eba2dd25e7 (diff)
downloadnextcloud-server-b761039cf1946cb64898b9117d1b15dd89080451.tar.gz
nextcloud-server-b761039cf1946cb64898b9117d1b15dd89080451.zip
perf(files): fetch previews faster and cache properly
Signed-off-by: John Molakvoæ <skjnldsv@protonmail.com>
Diffstat (limited to 'apps/files/appinfo/routes.php')
-rw-r--r--apps/files/appinfo/routes.php5
1 files changed, 5 insertions, 0 deletions
diff --git a/apps/files/appinfo/routes.php b/apps/files/appinfo/routes.php
index e4af2367906..a82490f7cae 100644
--- a/apps/files/appinfo/routes.php
+++ b/apps/files/appinfo/routes.php
@@ -134,6 +134,11 @@ $application->registerRoutes(
'verb' => 'GET'
],
[
+ 'name' => 'api#serviceWorker',
+ 'url' => '/preview-service-worker.js',
+ 'verb' => 'GET'
+ ],
+ [
'name' => 'view#index',
'url' => '/{view}',
'verb' => 'GET',