summaryrefslogtreecommitdiffstats
path: root/apps
diff options
context:
space:
mode:
authorMax <max@nextcloud.com>2023-07-27 11:35:18 +0200
committermax-nextcloud <max@nextcloud.com>2023-08-01 09:26:28 +0200
commitd2008f2d80157593c65eb63dfeff0863a2f05d90 (patch)
tree4d9d049685e982e12ad0992dc0fe83f7de8c3053 /apps
parent7ed4493a928a6f53d22e52c1aa1153d048f570c9 (diff)
downloadnextcloud-server-d2008f2d80157593c65eb63dfeff0863a2f05d90.tar.gz
nextcloud-server-d2008f2d80157593c65eb63dfeff0863a2f05d90.zip
fix(files): url used to retrive storage stats
Signed-off-by: Max <max@nextcloud.com>
Diffstat (limited to 'apps')
-rw-r--r--apps/files/js/files.js4
1 files changed, 2 insertions, 2 deletions
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);
});
},