Merge pull request #32962 from nextcloud/getstoragestat-change-url

Remove .php from url
pull/32998/head
Carl Schwan 2022-06-23 17:39:30 +07:00 committed by GitHub
commit 55bad5a1bb
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
2 changed files with 3 additions and 3 deletions

@ -99,7 +99,7 @@ $application->registerRoutes(
], ],
[ [
'name' => 'ajax#getStorageStats', 'name' => 'ajax#getStorageStats',
'url' => '/ajax/getstoragestats.php', 'url' => '/ajax/getstoragestats',
'verb' => 'GET', 'verb' => 'GET',
], ],
[ [

@ -25,7 +25,7 @@
state.call.abort(); state.call.abort();
} }
state.dir = currentDir; 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.dir = null;
state.call = null; state.call = null;
Files.updateMaxUploadFilesize(response); Files.updateMaxUploadFilesize(response);
@ -37,7 +37,7 @@
}, },
_updateStorageQuotas: function() { _updateStorageQuotas: function() {
var state = Files.updateStorageQuotas; 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); Files.updateQuota(response);
}); });
}, },