aboutsummaryrefslogtreecommitdiff
path: root/web/app/store
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/store
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/store')
-rw-r--r--web/app/store/AllDevices.js2
-rw-r--r--web/app/store/AllGeofences.js2
-rw-r--r--web/app/store/AllGroups.js2
-rw-r--r--web/app/store/AllNotifications.js2
-rw-r--r--web/app/store/CommandTypes.js2
-rw-r--r--web/app/store/Devices.js2
-rw-r--r--web/app/store/Events.js2
-rw-r--r--web/app/store/Geofences.js2
-rw-r--r--web/app/store/Groups.js2
-rw-r--r--web/app/store/Notifications.js2
-rw-r--r--web/app/store/Positions.js2
-rw-r--r--web/app/store/ReportEvents.js2
-rw-r--r--web/app/store/ReportRoute.js2
-rw-r--r--web/app/store/ReportSummary.js2
-rw-r--r--web/app/store/Users.js2
15 files changed, 15 insertions, 15 deletions
diff --git a/web/app/store/AllDevices.js b/web/app/store/AllDevices.js
index 8a6f7d5ef..3f51926e3 100644
--- a/web/app/store/AllDevices.js
+++ b/web/app/store/AllDevices.js
@@ -20,7 +20,7 @@ Ext.define('Traccar.store.AllDevices', {
proxy: {
type: 'rest',
- url: '/api/devices',
+ url: 'api/devices',
extraParams: {
all: true
}
diff --git a/web/app/store/AllGeofences.js b/web/app/store/AllGeofences.js
index aa6f9abfc..35209967b 100644
--- a/web/app/store/AllGeofences.js
+++ b/web/app/store/AllGeofences.js
@@ -20,7 +20,7 @@ Ext.define('Traccar.store.AllGeofences', {
proxy: {
type: 'rest',
- url: '/api/geofences',
+ url: 'api/geofences',
extraParams: {
all: true
}
diff --git a/web/app/store/AllGroups.js b/web/app/store/AllGroups.js
index 880ccc8f5..8ce0cc2f6 100644
--- a/web/app/store/AllGroups.js
+++ b/web/app/store/AllGroups.js
@@ -20,7 +20,7 @@ Ext.define('Traccar.store.AllGroups', {
proxy: {
type: 'rest',
- url: '/api/groups',
+ url: 'api/groups',
extraParams: {
all: true
}
diff --git a/web/app/store/AllNotifications.js b/web/app/store/AllNotifications.js
index fed02b260..9e9cb791d 100644
--- a/web/app/store/AllNotifications.js
+++ b/web/app/store/AllNotifications.js
@@ -20,7 +20,7 @@ Ext.define('Traccar.store.AllNotifications', {
proxy: {
type: 'rest',
- url: '/api/users/notifications',
+ url: 'api/users/notifications',
extraParams: {
all: true
}
diff --git a/web/app/store/CommandTypes.js b/web/app/store/CommandTypes.js
index d3825fb95..48405db6f 100644
--- a/web/app/store/CommandTypes.js
+++ b/web/app/store/CommandTypes.js
@@ -22,7 +22,7 @@ Ext.define('Traccar.store.CommandTypes', {
'beforeload' : function (store) {
var proxy;
proxy = store.getProxy();
- proxy.setUrl('/api/commandtypes?deviceId' + proxy.extraParams.deviceId);
+ proxy.setUrl('api/commandtypes?deviceId' + proxy.extraParams.deviceId);
}
},
diff --git a/web/app/store/Devices.js b/web/app/store/Devices.js
index 8ba513792..c3c37331c 100644
--- a/web/app/store/Devices.js
+++ b/web/app/store/Devices.js
@@ -20,7 +20,7 @@ Ext.define('Traccar.store.Devices', {
proxy: {
type: 'rest',
- url: '/api/devices',
+ url: 'api/devices',
writer: {
writeAllFields: true
}
diff --git a/web/app/store/Events.js b/web/app/store/Events.js
index 54b341d30..2698933fe 100644
--- a/web/app/store/Events.js
+++ b/web/app/store/Events.js
@@ -20,6 +20,6 @@ Ext.define('Traccar.store.Events', {
proxy: {
type: 'rest',
- url: '/api/events'
+ url: 'api/events'
}
});
diff --git a/web/app/store/Geofences.js b/web/app/store/Geofences.js
index 8c5c0b3cf..a0b01ae64 100644
--- a/web/app/store/Geofences.js
+++ b/web/app/store/Geofences.js
@@ -20,7 +20,7 @@ Ext.define('Traccar.store.Geofences', {
proxy: {
type: 'rest',
- url: '/api/geofences',
+ url: 'api/geofences',
writer: {
writeAllFields: true
}
diff --git a/web/app/store/Groups.js b/web/app/store/Groups.js
index 938abed64..8740b25d3 100644
--- a/web/app/store/Groups.js
+++ b/web/app/store/Groups.js
@@ -20,7 +20,7 @@ Ext.define('Traccar.store.Groups', {
proxy: {
type: 'rest',
- url: '/api/groups',
+ url: 'api/groups',
writer: {
writeAllFields: true
}
diff --git a/web/app/store/Notifications.js b/web/app/store/Notifications.js
index 5dc8cb614..04cd9b863 100644
--- a/web/app/store/Notifications.js
+++ b/web/app/store/Notifications.js
@@ -20,6 +20,6 @@ Ext.define('Traccar.store.Notifications', {
proxy: {
type: 'rest',
- url: '/api/users/notifications'
+ url: 'api/users/notifications'
}
});
diff --git a/web/app/store/Positions.js b/web/app/store/Positions.js
index b201c219c..8675983e5 100644
--- a/web/app/store/Positions.js
+++ b/web/app/store/Positions.js
@@ -20,6 +20,6 @@ Ext.define('Traccar.store.Positions', {
proxy: {
type: 'rest',
- url: '/api/positions'
+ url: 'api/positions'
}
});
diff --git a/web/app/store/ReportEvents.js b/web/app/store/ReportEvents.js
index bdef7a170..1759ffde8 100644
--- a/web/app/store/ReportEvents.js
+++ b/web/app/store/ReportEvents.js
@@ -20,7 +20,7 @@ Ext.define('Traccar.store.ReportEvents', {
proxy: {
type: 'rest',
- url: '/api/reports/events',
+ url: 'api/reports/events',
headers: {
'Accept': 'application/json'
}
diff --git a/web/app/store/ReportRoute.js b/web/app/store/ReportRoute.js
index fc96fc022..ab6da94ce 100644
--- a/web/app/store/ReportRoute.js
+++ b/web/app/store/ReportRoute.js
@@ -20,7 +20,7 @@ Ext.define('Traccar.store.ReportRoute', {
proxy: {
type: 'rest',
- url: '/api/reports/route',
+ url: 'api/reports/route',
headers: {
'Accept': 'application/json'
}
diff --git a/web/app/store/ReportSummary.js b/web/app/store/ReportSummary.js
index 2e4a8750d..35dad736b 100644
--- a/web/app/store/ReportSummary.js
+++ b/web/app/store/ReportSummary.js
@@ -20,7 +20,7 @@ Ext.define('Traccar.store.ReportSummary', {
proxy: {
type: 'rest',
- url: '/api/reports/summary',
+ url: 'api/reports/summary',
headers: {
'Accept': 'application/json'
}
diff --git a/web/app/store/Users.js b/web/app/store/Users.js
index 16901008d..53a49ff8c 100644
--- a/web/app/store/Users.js
+++ b/web/app/store/Users.js
@@ -20,7 +20,7 @@ Ext.define('Traccar.store.Users', {
proxy: {
type: 'rest',
- url: '/api/users',
+ url: 'api/users',
writer: {
writeAllFields: true
}