diff options
author | Anton Tananaev <anton.tananaev@gmail.com> | 2016-08-14 13:43:20 +0300 |
---|---|---|
committer | Anton Tananaev <anton.tananaev@gmail.com> | 2016-08-14 13:43:20 +0300 |
commit | d9777620508a7b197f0e5752869eef91d83e20a0 (patch) | |
tree | c247f37ed7621fba2eca775f628a19790a3bbf3c /web/app/view/LoginController.js | |
parent | 5d3b7cbe5924d4a4552035626a83e26b1e756255 (diff) | |
download | trackermap-server-d9777620508a7b197f0e5752869eef91d83e20a0.tar.gz trackermap-server-d9777620508a7b197f0e5752869eef91d83e20a0.tar.bz2 trackermap-server-d9777620508a7b197f0e5752869eef91d83e20a0.zip |
Use relative URLs for web app
Diffstat (limited to 'web/app/view/LoginController.js')
-rw-r--r-- | web/app/view/LoginController.js | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/web/app/view/LoginController.js b/web/app/view/LoginController.js index 8beef1e04..698cc7f9c 100644 --- a/web/app/view/LoginController.js +++ b/web/app/view/LoginController.js @@ -35,7 +35,7 @@ Ext.define('Traccar.view.LoginController', { Ext.Ajax.request({ scope: this, method: 'POST', - url: '/api/session', + url: 'api/session', params: form.getValues(), callback: function (options, success, response) { Ext.getBody().unmask(); @@ -60,7 +60,7 @@ Ext.define('Traccar.view.LoginController', { Ext.Ajax.request({ scope: this, method: 'DELETE', - url: '/api/session', + url: 'api/session', callback: function () { window.location.reload(); } |