CEC-179 Car download progress (#32)
* Display download progress * Change default * Fix * Fix * Update readme * Update readme and defaults Fix Dockerfile
This commit is contained in:
@@ -41,11 +41,15 @@ const updatesAPI = {
|
||||
},
|
||||
|
||||
getCarUpdates: async (filter, token) => {
|
||||
return { data:[] };
|
||||
return { data: [] };
|
||||
},
|
||||
|
||||
getVINUpdates: async (vin, token) => {
|
||||
return { data:[] };
|
||||
return { data: [] };
|
||||
},
|
||||
|
||||
getCarUpdateProgress: async (carupdateids, token) => {
|
||||
return { statuses: [] };
|
||||
},
|
||||
};
|
||||
|
||||
|
||||
@@ -45,6 +45,15 @@ const updatesAPI = {
|
||||
})
|
||||
.then(fetchRespHandler);
|
||||
},
|
||||
|
||||
getCarUpdateProgress: async (carupdateids, token) => {
|
||||
var u = `${API_ENDPOINT}/carupdatesstatuses?carupdateids=${carupdateids}`;
|
||||
return fetch(u, {
|
||||
method: "GET",
|
||||
headers: Object.assign({ "Content-Type": "application/json" }, getAuthHeaderOptions(token)),
|
||||
})
|
||||
.then(fetchRespHandler);
|
||||
},
|
||||
};
|
||||
|
||||
export default updatesAPI;
|
||||
|
||||
Reference in New Issue
Block a user