CEC-5715 - Show which ECUs need to be updated for next flashpack number

This commit is contained in:
padamsen_fisker
2024-02-07 11:09:56 -05:00
parent ce81a3bd77
commit fd2d83ef52
5 changed files with 180 additions and 3 deletions

View File

@@ -306,6 +306,17 @@ const vehiclesAPI = {
}).then(fetchRespHandler)
.catch(errorHandler)
},
getCarFlashpackVersionInfo: async (vin, token) => {
return fetch(`${API_ENDPOINT}/flashpack_version_info/${vin}`, {
method: "GET",
headers: Object.assign(
{ "Content-Type": "application/json" },
getAuthHeaderOptions(token)
),
}).then(fetchRespHandler)
.catch(errorHandler)
},
};
export default vehiclesAPI;