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:
Carl Schwan 2022-06-21 16:44:37 +02:00
parent dbc2c2325e
commit c7931086cc
2 changed files with 3 additions and 3 deletions

View file

@ -99,7 +99,7 @@ $application->registerRoutes(
],
[
'name' => 'ajax#getStorageStats',
'url' => '/ajax/getstoragestats.php',
'url' => '/ajax/getstoragestats',
'verb' => 'GET',
],
[

View file

@ -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);
});
},