diff options
author | Anton Tananaev <anton.tananaev@gmail.com> | 2015-10-15 15:26:25 +1300 |
---|---|---|
committer | Anton Tananaev <anton.tananaev@gmail.com> | 2015-10-15 15:26:25 +1300 |
commit | 6ce1f7d481aec69107ef34924bda57fafbce67ed (patch) | |
tree | bbd4aaab6a22457391a6a6f99ca4dfd28704336f /web/app/store/AllDevices.js | |
parent | d3ca7de349f1d8ab0d02bf783a2c7627af44c6fd (diff) | |
download | traccar-server-6ce1f7d481aec69107ef34924bda57fafbce67ed.tar.gz traccar-server-6ce1f7d481aec69107ef34924bda57fafbce67ed.tar.bz2 traccar-server-6ce1f7d481aec69107ef34924bda57fafbce67ed.zip |
Service call to get all devices
Diffstat (limited to 'web/app/store/AllDevices.js')
-rw-r--r-- | web/app/store/AllDevices.js | 32 |
1 files changed, 32 insertions, 0 deletions
diff --git a/web/app/store/AllDevices.js b/web/app/store/AllDevices.js new file mode 100644 index 000000000..a591b6561 --- /dev/null +++ b/web/app/store/AllDevices.js @@ -0,0 +1,32 @@ +/* + * Copyright 2015 Anton Tananaev (anton.tananaev@gmail.com) + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +Ext.define('Traccar.store.AllDevices', { + extend: 'Ext.data.Store', + model: 'Traccar.model.Device', + + proxy: { + type: 'ajax', + url: '/api/device/get', + extraParams: { + all: true + }, + reader: { + type: 'json', + rootProperty: 'data' + } + } +}); |