From dbf6f4c81b589a06b91ffeb53a36d5dfd15a5149 Mon Sep 17 00:00:00 2001 From: Julius Härtl Date: Thu, 5 Jan 2023 08:10:33 +0100 Subject: fix(files): Make sure that static routes on /apps/files still work MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Signed-off-by: Julius Härtl --- apps/files/appinfo/routes.php | 24 ++++++++++++------------ 1 file changed, 12 insertions(+), 12 deletions(-) (limited to 'apps/files/appinfo') 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' => [ [ -- cgit v1.2.3