From a05daf7d491e72a6272b2562f5bd21325795c3ab Mon Sep 17 00:00:00 2001 From: Anton Tananaev Date: Wed, 2 Dec 2015 14:27:10 +1300 Subject: Add positions resource to the REST API --- web/app/store/Positions.js | 8 ++------ 1 file changed, 2 insertions(+), 6 deletions(-) (limited to 'web/app') diff --git a/web/app/store/Positions.js b/web/app/store/Positions.js index 7de54a8d2..cfccd4f94 100644 --- a/web/app/store/Positions.js +++ b/web/app/store/Positions.js @@ -19,11 +19,7 @@ Ext.define('Traccar.store.Positions', { model: 'Traccar.model.Position', proxy: { - type: 'ajax', - url: '/api/position/get', - reader: { - type: 'json', - rootProperty: 'data' - } + type: 'rest', + url: '/api/rest/positions' } }); -- cgit v1.2.3