From: Max Date: Thu, 27 Jul 2023 09:35:18 +0000 (+0200) Subject: fix(files): url used to retrive storage stats X-Git-Tag: v28.0.0beta1~629^2 X-Git-Url: https://source.dussan.org/?a=commitdiff_plain;h=refs%2Fpull%2F39588%2Fhead;p=nextcloud-server.git fix(files): url used to retrive storage stats Signed-off-by: Max --- diff --git a/apps/files/js/files.js b/apps/files/js/files.js index 1788ebe9d3f..486e437a8aa 100644 --- a/apps/files/js/files.js +++ b/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); }); },