mirror of
https://github.com/nextcloud/server.git
synced 2026-02-10 22:34:26 -05:00
fix(files): url used to retrive storage stats
Signed-off-by: Max <max@nextcloud.com>
This commit is contained in:
parent
286cceebc3
commit
db5e2f0065
1 changed files with 2 additions and 2 deletions
|
|
@ -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);
|
||||
});
|
||||
},
|
||||
|
|
|
|||
Loading…
Reference in a new issue