aboutsummaryrefslogtreecommitdiff
path: root/web/app/store/AllDevices.js
diff options
context:
space:
mode:
Diffstat (limited to 'web/app/store/AllDevices.js')
-rw-r--r--web/app/store/AllDevices.js8
1 files changed, 2 insertions, 6 deletions
diff --git a/web/app/store/AllDevices.js b/web/app/store/AllDevices.js
index a591b6561..7e268f747 100644
--- a/web/app/store/AllDevices.js
+++ b/web/app/store/AllDevices.js
@@ -19,14 +19,10 @@ Ext.define('Traccar.store.AllDevices', {
model: 'Traccar.model.Device',
proxy: {
- type: 'ajax',
- url: '/api/device/get',
+ type: 'rest',
+ url: '/api/rest/devices',
extraParams: {
all: true
- },
- reader: {
- type: 'json',
- rootProperty: 'data'
}
}
});