mirror of
https://github.com/nextcloud/server.git
synced 2026-05-28 04:32:30 -04:00
Remove .php from url
Probably here for legacy reasons, but it is a bit weird to call an .php endpoint that doesn't correspond to a .php file Signed-off-by: Carl Schwan <carl@carlschwan.eu>
This commit is contained in:
parent
dbc2c2325e
commit
c7931086cc
2 changed files with 3 additions and 3 deletions
|
|
@ -99,7 +99,7 @@ $application->registerRoutes(
|
|||
],
|
||||
[
|
||||
'name' => 'ajax#getStorageStats',
|
||||
'url' => '/ajax/getstoragestats.php',
|
||||
'url' => '/ajax/getstoragestats',
|
||||
'verb' => 'GET',
|
||||
],
|
||||
[
|
||||
|
|
|
|||
|
|
@ -25,7 +25,7 @@
|
|||
state.call.abort();
|
||||
}
|
||||
state.dir = currentDir;
|
||||
state.call = $.getJSON(OC.filePath('files','ajax','getstoragestats.php') + '?dir=' + encodeURIComponent(currentDir),function(response) {
|
||||
state.call = $.getJSON(OC.filePath('files','ajax','getstoragestats') + '?dir=' + encodeURIComponent(currentDir),function(response) {
|
||||
state.dir = null;
|
||||
state.call = null;
|
||||
Files.updateMaxUploadFilesize(response);
|
||||
|
|
@ -37,7 +37,7 @@
|
|||
},
|
||||
_updateStorageQuotas: function() {
|
||||
var state = Files.updateStorageQuotas;
|
||||
state.call = $.getJSON(OC.filePath('files','ajax','getstoragestats.php'),function(response) {
|
||||
state.call = $.getJSON(OC.filePath('files','ajax','getstoragestats'),function(response) {
|
||||
Files.updateQuota(response);
|
||||
});
|
||||
},
|
||||
|
|
|
|||
Loading…
Reference in a new issue