diff options
Diffstat (limited to 'web/app/model/Server.js')
-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 + } + } }); |