From a4d7ae689dff9279e22c90f12427d57cc5f3a1d5 Mon Sep 17 00:00:00 2001 From: Max Date: Thu, 27 Jul 2023 11:35:18 +0200 Subject: [PATCH] fix(files): url used to retrive storage stats Signed-off-by: Max --- apps/files/js/files.js | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/apps/files/js/files.js b/apps/files/js/files.js index b0c38248183..dcc6cbf6407 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); }); }, -- 2.39.5