]> source.dussan.org Git - nextcloud-server.git/commitdiff
fix(files): Make sure that static routes on /apps/files still work 36008/head
authorJulius Härtl <jus@bitgrid.net>
Thu, 5 Jan 2023 07:10:33 +0000 (08:10 +0100)
committerJulius Härtl <jus@bitgrid.net>
Thu, 5 Jan 2023 07:10:33 +0000 (08:10 +0100)
Signed-off-by: Julius Härtl <jus@bitgrid.net>
apps/files/appinfo/routes.php

index 60ba6afdf7a1533bb28af81735fa3d54fa94d26b..1de9cad56b2fad3dbaf9f25a33f9e55ee61a3020 100644 (file)
@@ -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' => [
                        [