CEC-5542 - Indicate how many fleet vehicles are what flashpack versions

This commit is contained in:
padamsen_fisker
2024-04-23 15:30:32 -04:00
parent a59a3df85e
commit 3bf93a8940
7 changed files with 156 additions and 3 deletions

View File

@@ -143,6 +143,17 @@ const fleetsAPI = {
})
.then(fetchRespHandler)
.catch(errorHandler),
getFlashpackVersionInfoFleet: async (name, token) =>
fetch(`${API_ENDPOINT}/flashpack_version_info_fleet/${name}`, {
method: "GET",
headers: Object.assign(
{ "Content-Type": "application/json" },
getAuthHeaderOptions(token)
),
})
.then(fetchRespHandler)
.catch(errorHandler),
};
export default fleetsAPI;