From: Julius Härtl Date: Thu, 5 Jan 2023 07:10:33 +0000 (+0100) Subject: fix(files): Make sure that static routes on /apps/files still work X-Git-Tag: v26.0.0beta1~128^2 X-Git-Url: https://source.dussan.org/?a=commitdiff_plain;h=dbf6f4c81b589a06b91ffeb53a36d5dfd15a5149;p=nextcloud-server.git fix(files): Make sure that static routes on /apps/files still work Signed-off-by: Julius Härtl --- diff --git a/apps/files/appinfo/routes.php b/apps/files/appinfo/routes.php index 60ba6afdf7a..1de9cad56b2 100644 --- a/apps/files/appinfo/routes.php +++ b/apps/files/appinfo/routes.php @@ -57,18 +57,6 @@ $application->registerRoutes( 'url' => '/', 'verb' => 'GET', ], - [ - 'name' => 'view#index', - 'url' => '/{view}', - 'verb' => 'GET', - 'postfix' => 'view', - ], - [ - 'name' => 'view#index', - 'url' => '/{view}/{fileid}', - 'verb' => 'GET', - 'postfix' => 'fileid', - ], [ 'name' => 'View#showFile', 'url' => '/f/{fileid}', @@ -147,6 +135,18 @@ $application->registerRoutes( 'url' => '/directEditing/{token}', 'verb' => 'GET' ], + [ + 'name' => 'view#index', + 'url' => '/{view}', + 'verb' => 'GET', + 'postfix' => 'view', + ], + [ + 'name' => 'view#index', + 'url' => '/{view}/{fileid}', + 'verb' => 'GET', + 'postfix' => 'fileid', + ], ], 'ocs' => [ [