]> source.dussan.org Git - nextcloud-server.git/commitdiff
Remove .php from url
authorCarl Schwan <carl@carlschwan.eu>
Tue, 21 Jun 2022 14:44:37 +0000 (16:44 +0200)
committerCarl Schwan <carl@carlschwan.eu>
Tue, 5 Jul 2022 14:39:24 +0000 (16:39 +0200)
Probably here for legacy reasons, but it is a bit weird to call an .php
endpoint that doesn't correspond to a .php file

Signed-off-by: Carl Schwan <carl@carlschwan.eu>
(cherry picked from commit c7931086cc557211073540cf13e2af4c5afaaad3)

apps/files/appinfo/routes.php
apps/files/js/files.js

index a98170363e9265c22049c9d7ca2ad4e664c5e07d..2aeef05558c06934f794dabad7cdce36944abc76 100644 (file)
@@ -99,7 +99,7 @@ $application->registerRoutes(
                        ],
                        [
                                'name' => 'ajax#getStorageStats',
-                               'url' => '/ajax/getstoragestats.php',
+                               'url' => '/ajax/getstoragestats',
                                'verb' => 'GET',
                        ],
                        [
index ae247584682ecfd20e53b3879a85f8e058b95cb7..6aa871d99c0f6f890d2958671112ff0a1e56e4bb 100644 (file)
@@ -25,7 +25,7 @@
                                state.call.abort();
                        }
                        state.dir = currentDir;
-                       state.call = $.getJSON(OC.filePath('files','ajax','getstoragestats.php') + '?dir=' + encodeURIComponent(currentDir),function(response) {
+                       state.call = $.getJSON(OC.filePath('files','ajax','getstoragestats') + '?dir=' + encodeURIComponent(currentDir),function(response) {
                                state.dir = null;
                                state.call = null;
                                Files.updateMaxUploadFilesize(response);
@@ -37,7 +37,7 @@
                },
                _updateStorageQuotas: function() {
                        var state = Files.updateStorageQuotas;
-                       state.call = $.getJSON(OC.filePath('files','ajax','getstoragestats.php'),function(response) {
+                       state.call = $.getJSON(OC.filePath('files','ajax','getstoragestats'),function(response) {
                                Files.updateQuota(response);
                        });
                },