mirror of
https://github.com/nextcloud/server.git
synced 2026-06-10 01:00:50 -04:00
Merge pull request #33113 from nextcloud/fix/stable24/ajax-file
[stable24] Remove .php from ajax url
This commit is contained in:
commit
e00ef77def
2 changed files with 5 additions and 3 deletions
|
|
@ -99,7 +99,7 @@ $application->registerRoutes(
|
|||
],
|
||||
[
|
||||
'name' => 'ajax#getStorageStats',
|
||||
'url' => '/ajax/getstoragestats.php',
|
||||
'url' => '/ajax/getstoragestats',
|
||||
'verb' => 'GET',
|
||||
],
|
||||
[
|
||||
|
|
|
|||
|
|
@ -25,7 +25,9 @@
|
|||
state.call.abort();
|
||||
}
|
||||
state.dir = currentDir;
|
||||
state.call = $.getJSON(OC.filePath('files','ajax','getstoragestats.php') + '?dir=' + encodeURIComponent(currentDir),function(response) {
|
||||
state.call = $.getJSON(OC.generateUrl('apps/files/ajax/getstoragestats?dir={dir}', {
|
||||
dir: currentDir,
|
||||
}), function(response) {
|
||||
state.dir = null;
|
||||
state.call = null;
|
||||
Files.updateMaxUploadFilesize(response);
|
||||
|
|
@ -37,7 +39,7 @@
|
|||
},
|
||||
_updateStorageQuotas: function() {
|
||||
var state = Files.updateStorageQuotas;
|
||||
state.call = $.getJSON(OC.filePath('files','ajax','getstoragestats.php'),function(response) {
|
||||
state.call = $.getJSON(OC.generateUrl('apps/files/ajax/getstoragestats'), function(response) {
|
||||
Files.updateQuota(response);
|
||||
});
|
||||
},
|
||||
|
|
|
|||
Loading…
Reference in a new issue