fix(files): url used to retrive storage stats

Signed-off-by: Max <max@nextcloud.com>
pull/39588/head
Max 2 years ago committed by max-nextcloud
parent 286cceebc3
commit db5e2f0065
  1. 4
      apps/files/js/files.js

@ -25,7 +25,7 @@
state.call.abort();
}
state.dir = currentDir;
state.call = $.getJSON(OC.generateUrl('apps/files/ajax/getstoragestats?dir={dir}', {
state.call = $.getJSON(OC.generateUrl('apps/files/api/v1/stats?dir={dir}', {
dir: currentDir,
}), function(response) {
state.dir = null;
@ -39,7 +39,7 @@
},
_updateStorageQuotas: function() {
var state = Files.updateStorageQuotas;
state.call = $.getJSON(OC.generateUrl('apps/files/ajax/getstoragestats'), function(response) {
state.call = $.getJSON(OC.generateUrl('apps/files/api/v1/stats'), function(response) {
Files.updateQuota(response);
});
},

Loading…
Cancel
Save