summaryrefslogtreecommitdiffstats
path: root/apps/files
diff options
context:
space:
mode:
authorRoeland Jago Douma <rullzer@users.noreply.github.com>2020-04-21 16:00:34 +0200
committerGitHub <noreply@github.com>2020-04-21 16:00:34 +0200
commit8f650feedec0555c294cd7b242b6519c346b3bc5 (patch)
tree3afa3396d7508d43bc949b15f5310dd96fd706a6 /apps/files
parent613f0f2c0c2f07ad084a64f85debe9f6845b78f2 (diff)
parent1b93d5f1db6e2c9931f62c96c2dd60b7a2251ce9 (diff)
downloadnextcloud-server-8f650feedec0555c294cd7b242b6519c346b3bc5.tar.gz
nextcloud-server-8f650feedec0555c294cd7b242b6519c346b3bc5.zip
Merge pull request #20114 from nextcloud/techdebt/noid/allow-some-apps-to-have-root-urls
Allow some apps to have root URLs in their own routing file
Diffstat (limited to 'apps/files')
-rw-r--r--apps/files/appinfo/routes.php11
1 files changed, 9 insertions, 2 deletions
diff --git a/apps/files/appinfo/routes.php b/apps/files/appinfo/routes.php
index 825249b0874..d304ceb7b28 100644
--- a/apps/files/appinfo/routes.php
+++ b/apps/files/appinfo/routes.php
@@ -42,6 +42,13 @@ $application->registerRoutes(
[
'routes' => [
[
+ 'name' => 'View#showFile',
+ 'url' => '/f/{fileid}',
+ 'verb' => 'GET',
+ 'root' => '',
+ ],
+
+ [
'name' => 'API#getThumbnail',
'url' => '/api/v1/thumbnail/{x}/{y}/{file}',
'verb' => 'GET',
@@ -146,7 +153,7 @@ $application->registerRoutes(
/** @var $this \OC\Route\Router */
-$this->create('files_ajax_download', 'ajax/download.php')
+$this->create('files_ajax_download', 'apps/files/ajax/download.php')
->actionInclude('files/ajax/download.php');
-$this->create('files_ajax_list', 'ajax/list.php')
+$this->create('files_ajax_list', 'apps/files/ajax/list.php')
->actionInclude('files/ajax/list.php');