diff options
author | Anton Tananaev <anton.tananaev@gmail.com> | 2015-12-02 14:08:01 +1300 |
---|---|---|
committer | Anton Tananaev <anton.tananaev@gmail.com> | 2015-12-02 14:08:01 +1300 |
commit | d64dca63369c702e8f276fab50d9b3201c437e00 (patch) | |
tree | 4d962e8c2fe242a13146d9abefcf3ab77cce4619 /web/app/store/Devices.js | |
parent | dc99e22966e542e6399df429c1e7611bc9c3bd52 (diff) | |
download | traccar-server-d64dca63369c702e8f276fab50d9b3201c437e00.tar.gz traccar-server-d64dca63369c702e8f276fab50d9b3201c437e00.tar.bz2 traccar-server-d64dca63369c702e8f276fab50d9b3201c437e00.zip |
Initial wiring of users and devices APIs
Diffstat (limited to 'web/app/store/Devices.js')
-rw-r--r-- | web/app/store/Devices.js | 14 |
1 files changed, 2 insertions, 12 deletions
diff --git a/web/app/store/Devices.js b/web/app/store/Devices.js index 24777de5a..c8c95bda0 100644 --- a/web/app/store/Devices.js +++ b/web/app/store/Devices.js @@ -19,19 +19,9 @@ Ext.define('Traccar.store.Devices', { model: 'Traccar.model.Device', proxy: { - type: 'ajax', - api: { - create: '/api/device/add', - read: '/api/device/get', - update: '/api/device/update', - destroy: '/api/device/remove' - }, - reader: { - type: 'json', - rootProperty: 'data' - }, + type: 'rest', + url: '/api/rest/devices', writer: { - type: 'json', writeAllFields: true } } |