aboutsummaryrefslogtreecommitdiff
path: root/web/app/store/Users.js
diff options
context:
space:
mode:
Diffstat (limited to 'web/app/store/Users.js')
-rw-r--r--web/app/store/Users.js14
1 files changed, 2 insertions, 12 deletions
diff --git a/web/app/store/Users.js b/web/app/store/Users.js
index 004dc727e..5427c2d70 100644
--- a/web/app/store/Users.js
+++ b/web/app/store/Users.js
@@ -19,19 +19,9 @@ Ext.define('Traccar.store.Users', {
model: 'Traccar.model.User',
proxy: {
- type: 'ajax',
- api: {
- create: '/api/user/add',
- read: '/api/user/get',
- update: '/api/user/update',
- destroy: '/api/user/remove'
- },
- reader: {
- type: 'json',
- rootProperty: 'data'
- },
+ type: 'rest',
+ url: '/api/rest/users',
writer: {
- type: 'json',
writeAllFields: true
}
}