diff options
author | Anton Tananaev <anton.tananaev@gmail.com> | 2015-12-02 13:35:15 +1300 |
---|---|---|
committer | Anton Tananaev <anton.tananaev@gmail.com> | 2015-12-02 13:35:15 +1300 |
commit | dc99e22966e542e6399df429c1e7611bc9c3bd52 (patch) | |
tree | 419630187f555348f1e469014d36c9e1e6ff5590 /web/app/model/Server.js | |
parent | 2d934d61544b1fbe3e8ec733988f90a358809956 (diff) | |
download | trackermap-server-dc99e22966e542e6399df429c1e7611bc9c3bd52.tar.gz trackermap-server-dc99e22966e542e6399df429c1e7611bc9c3bd52.tar.bz2 trackermap-server-dc99e22966e542e6399df429c1e7611bc9c3bd52.zip |
Implement server config update API
Diffstat (limited to 'web/app/model/Server.js')
-rw-r--r-- | web/app/model/Server.js | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/web/app/model/Server.js b/web/app/model/Server.js index 2ed2c456f..202c856c9 100644 --- a/web/app/model/Server.js +++ b/web/app/model/Server.js @@ -55,7 +55,10 @@ Ext.define('Traccar.model.Server', { proxy: { type: 'ajax', - url: '/api/server/update', + url: '/api/rest/server', + actionMethods: { + update: 'PUT' + }, writer: { type: 'json', writeAllFields: true |