From 4113e28eda3df4725cc72527216a02d1b9cfed17 Mon Sep 17 00:00:00 2001 From: Anton Tananaev Date: Tue, 15 Dec 2015 15:02:01 +1300 Subject: Enable only REST API by default --- web/app/store/AllDevices.js | 2 +- web/app/store/Devices.js | 2 +- web/app/store/Positions.js | 2 +- web/app/store/Users.js | 2 +- 4 files changed, 4 insertions(+), 4 deletions(-) (limited to 'web/app/store') diff --git a/web/app/store/AllDevices.js b/web/app/store/AllDevices.js index 7e268f747..8a6f7d5ef 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/rest/devices', + url: '/api/devices', extraParams: { all: true } diff --git a/web/app/store/Devices.js b/web/app/store/Devices.js index c8c95bda0..8ba513792 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/rest/devices', + url: '/api/devices', writer: { writeAllFields: true } diff --git a/web/app/store/Positions.js b/web/app/store/Positions.js index cfccd4f94..b201c219c 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/rest/positions' + url: '/api/positions' } }); diff --git a/web/app/store/Users.js b/web/app/store/Users.js index 5427c2d70..16901008d 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/rest/users', + url: '/api/users', writer: { writeAllFields: true } -- cgit v1.2.3