aboutsummaryrefslogtreecommitdiff
path: root/web/app/view
diff options
context:
space:
mode:
authorAnton Tananaev <anton.tananaev@gmail.com>2016-08-14 13:43:20 +0300
committerAnton Tananaev <anton.tananaev@gmail.com>2016-08-14 13:43:20 +0300
commitd9777620508a7b197f0e5752869eef91d83e20a0 (patch)
treec247f37ed7621fba2eca775f628a19790a3bbf3c /web/app/view
parent5d3b7cbe5924d4a4552035626a83e26b1e756255 (diff)
downloadtrackermap-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')
-rw-r--r--web/app/view/CommandDialogController.js2
-rw-r--r--web/app/view/DevicesController.js2
-rw-r--r--web/app/view/GroupsController.js2
-rw-r--r--web/app/view/LoginController.js4
-rw-r--r--web/app/view/NotificationsController.js2
-rw-r--r--web/app/view/RegisterController.js2
-rw-r--r--web/app/view/UsersController.js6
7 files changed, 10 insertions, 10 deletions
diff --git a/web/app/view/CommandDialogController.js b/web/app/view/CommandDialogController.js
index 1b5ca0ce0..9da5bd42e 100644
--- a/web/app/view/CommandDialogController.js
+++ b/web/app/view/CommandDialogController.js
@@ -51,7 +51,7 @@ Ext.define('Traccar.view.CommandDialogController', {
Ext.Ajax.request({
scope: this,
- url: '/api/commands',
+ url: 'api/commands',
jsonData: record.getData(),
callback: this.onSendResult
});
diff --git a/web/app/view/DevicesController.js b/web/app/view/DevicesController.js
index ca3e24661..85aa5fcd4 100644
--- a/web/app/view/DevicesController.js
+++ b/web/app/view/DevicesController.js
@@ -96,7 +96,7 @@ Ext.define('Traccar.view.DevicesController', {
baseObjectName: 'deviceId',
linkObjectName: 'geofenceId',
storeName: 'Geofences',
- urlApi: '/api/devices/geofences',
+ urlApi: 'api/devices/geofences',
baseObject: device.getData().id
}
}).show();
diff --git a/web/app/view/GroupsController.js b/web/app/view/GroupsController.js
index 4cf1459a6..7413f64a8 100644
--- a/web/app/view/GroupsController.js
+++ b/web/app/view/GroupsController.js
@@ -71,7 +71,7 @@ Ext.define('Traccar.view.GroupsController', {
baseObjectName: 'groupId',
linkObjectName: 'geofenceId',
storeName: admin ? 'AllGeofences' : 'Geofences',
- urlApi: '/api/groups/geofences',
+ urlApi: 'api/groups/geofences',
baseObject: group.getData().id
}
}).show();
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();
}
diff --git a/web/app/view/NotificationsController.js b/web/app/view/NotificationsController.js
index 90479fe07..628343a84 100644
--- a/web/app/view/NotificationsController.js
+++ b/web/app/view/NotificationsController.js
@@ -64,7 +64,7 @@ Ext.define('Traccar.view.NotificationsController', {
var record = this.getView().getStore().getAt(rowIndex);
Ext.Ajax.request({
scope: this,
- url: '/api/users/notifications',
+ url: 'api/users/notifications',
jsonData: {
userId: this.userId,
type: record.getData().type,
diff --git a/web/app/view/RegisterController.js b/web/app/view/RegisterController.js
index dfc4a1735..b79c5f59b 100644
--- a/web/app/view/RegisterController.js
+++ b/web/app/view/RegisterController.js
@@ -24,7 +24,7 @@ Ext.define('Traccar.view.RegisterController', {
Ext.Ajax.request({
scope: this,
method: 'POST',
- url: '/api/users',
+ url: 'api/users',
jsonData: form.getValues(),
callback: this.onCreateReturn
});
diff --git a/web/app/view/UsersController.js b/web/app/view/UsersController.js
index e745ee04c..73088a40e 100644
--- a/web/app/view/UsersController.js
+++ b/web/app/view/UsersController.js
@@ -77,7 +77,7 @@ Ext.define('Traccar.view.UsersController', {
linkObjectName: 'deviceId',
storeName: 'AllDevices',
linkStoreName: 'Devices',
- urlApi: '/api/permissions/devices',
+ urlApi: 'api/permissions/devices',
baseObject: user.getData().id
}
}).show();
@@ -93,7 +93,7 @@ Ext.define('Traccar.view.UsersController', {
linkObjectName: 'groupId',
storeName: 'AllGroups',
linkStoreName: 'Groups',
- urlApi: '/api/permissions/groups',
+ urlApi: 'api/permissions/groups',
baseObject: user.getData().id
}
}).show();
@@ -109,7 +109,7 @@ Ext.define('Traccar.view.UsersController', {
linkObjectName: 'geofenceId',
storeName: 'AllGeofences',
linkStoreName: 'Geofences',
- urlApi: '/api/permissions/geofences',
+ urlApi: 'api/permissions/geofences',
baseObject: user.getData().id
}
}).show();