diff options
author | Anton Tananaev <anton.tananaev@gmail.com> | 2015-06-05 18:47:24 +1200 |
---|---|---|
committer | Anton Tananaev <anton.tananaev@gmail.com> | 2015-06-05 18:47:24 +1200 |
commit | c2afe93f1443181bc7bcce2df708a88c331b8800 (patch) | |
tree | 808dc50805ee76a882d299142ee0201bafc5a90c /web/app/model | |
parent | 35ae7fbd26180fa56072095ef47d6c54a4e22393 (diff) | |
download | trackermap-server-c2afe93f1443181bc7bcce2df708a88c331b8800.tar.gz trackermap-server-c2afe93f1443181bc7bcce2df708a88c331b8800.tar.bz2 trackermap-server-c2afe93f1443181bc7bcce2df708a88c331b8800.zip |
Implement server settings
Diffstat (limited to 'web/app/model')
-rw-r--r-- | web/app/model/Server.js | 11 |
1 files changed, 10 insertions, 1 deletions
diff --git a/web/app/model/Server.js b/web/app/model/Server.js index 289a13593..128855a2b 100644 --- a/web/app/model/Server.js +++ b/web/app/model/Server.js @@ -24,5 +24,14 @@ Ext.define('Traccar.model.Server', { { name: 'latitude', type: 'float' }, { name: 'longitude', type: 'float' }, { name: 'zoom', type: 'int' } - ] + ], + + proxy: { + type: 'ajax', + url: '/api/server/update', + writer: { + type: 'json', + writeAllFields: true + } + } }); |