]> source.dussan.org Git - nextcloud-server.git/commitdiff
fix(files): url used to retrive storage stats 39588/head
authorMax <max@nextcloud.com>
Thu, 27 Jul 2023 09:35:18 +0000 (11:35 +0200)
committermax-nextcloud <max@nextcloud.com>
Mon, 31 Jul 2023 16:46:57 +0000 (18:46 +0200)
Signed-off-by: Max <max@nextcloud.com>
apps/files/js/files.js

index 1788ebe9d3f5e5d4214abe900f7f20020b060cd8..486e437a8aa3831090b9528a13ce7b56aff0dd2f 100644 (file)
@@ -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);
                        });
                },