]> source.dussan.org Git - nextcloud-server.git/commitdiff
fix(files): url used to retrive storage stats
authorMax <max@nextcloud.com>
Thu, 27 Jul 2023 09:35:18 +0000 (11:35 +0200)
committerJulius Härtl <jus@bitgrid.net>
Fri, 3 Nov 2023 10:17:17 +0000 (11:17 +0100)
Signed-off-by: Max <max@nextcloud.com>
apps/files/js/files.js

index b0c38248183094aefe1221be430195ab70cbd47e..dcc6cbf6407e67cea6c0304c70c04725914ef215 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);
                        });
                },