aboutsummaryrefslogtreecommitdiff
path: root/web/app/model
diff options
context:
space:
mode:
authorAnton Tananaev <anton.tananaev@gmail.com>2015-06-05 18:47:24 +1200
committerAnton Tananaev <anton.tananaev@gmail.com>2015-06-05 18:47:24 +1200
commitc2afe93f1443181bc7bcce2df708a88c331b8800 (patch)
tree808dc50805ee76a882d299142ee0201bafc5a90c /web/app/model
parent35ae7fbd26180fa56072095ef47d6c54a4e22393 (diff)
downloadtraccar-server-c2afe93f1443181bc7bcce2df708a88c331b8800.tar.gz
traccar-server-c2afe93f1443181bc7bcce2df708a88c331b8800.tar.bz2
traccar-server-c2afe93f1443181bc7bcce2df708a88c331b8800.zip
Implement server settings
Diffstat (limited to 'web/app/model')
-rw-r--r--web/app/model/Server.js11
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
+ }
+ }
});