diff options
Diffstat (limited to 'web/app/view')
-rw-r--r-- | web/app/view/CommandDialogController.js | 2 | ||||
-rw-r--r-- | web/app/view/LoginController.js | 4 | ||||
-rw-r--r-- | web/app/view/RegisterController.js | 2 | ||||
-rw-r--r-- | web/app/view/UserDevicesController.js | 4 |
4 files changed, 6 insertions, 6 deletions
diff --git a/web/app/view/CommandDialogController.js b/web/app/view/CommandDialogController.js index bf2fe4fde..93109a2d6 100644 --- a/web/app/view/CommandDialogController.js +++ b/web/app/view/CommandDialogController.js @@ -42,7 +42,7 @@ Ext.define('Traccar.view.CommandDialogController', { Ext.Ajax.request({ scope: this, - url: '/api/rest/commands', + url: '/api/commands', jsonData: record.getData(), callback: this.onSendResult }); diff --git a/web/app/view/LoginController.js b/web/app/view/LoginController.js index 0ac8408fa..3dd8af082 100644 --- a/web/app/view/LoginController.js +++ b/web/app/view/LoginController.js @@ -35,7 +35,7 @@ Ext.define('Traccar.view.LoginController', { Ext.Ajax.request({ scope: this, method: 'POST', - url: '/api/rest/session', + url: '/api/session', params: form.getValues(), callback: function (options, success, response) { Ext.getBody().unmask(); @@ -54,7 +54,7 @@ Ext.define('Traccar.view.LoginController', { Ext.Ajax.request({ scope: this, method: 'DELETE', - url: '/api/rest/session', + url: '/api/session', callback: function () { window.location.reload(); } diff --git a/web/app/view/RegisterController.js b/web/app/view/RegisterController.js index 9dcfe2107..dfc4a1735 100644 --- a/web/app/view/RegisterController.js +++ b/web/app/view/RegisterController.js @@ -24,7 +24,7 @@ Ext.define('Traccar.view.RegisterController', { Ext.Ajax.request({ scope: this, method: 'POST', - url: '/api/rest/users', + url: '/api/users', jsonData: form.getValues(), callback: this.onCreateReturn }); diff --git a/web/app/view/UserDevicesController.js b/web/app/view/UserDevicesController.js index 5232d82ce..4f013fd64 100644 --- a/web/app/view/UserDevicesController.js +++ b/web/app/view/UserDevicesController.js @@ -47,7 +47,7 @@ Ext.define('Traccar.view.UserDevicesController', { onBeforeSelect: function (object, record, index) { Ext.Ajax.request({ scope: this, - url: '/api/rest/permissions', + url: '/api/permissions', jsonData: { userId: this.userId, deviceId: record.getData().id @@ -64,7 +64,7 @@ Ext.define('Traccar.view.UserDevicesController', { Ext.Ajax.request({ scope: this, method: 'DELETE', - url: '/api/rest/permissions', + url: '/api/permissions', jsonData: { userId: this.userId, deviceId: record.getData().id |