CEC-6008 - Map flashpack numbers to OS numbers, and display in the UI

This commit is contained in:
padamsen_fisker
2024-04-26 17:29:19 -04:00
parent a59a3df85e
commit 77ed7507d4
6 changed files with 128 additions and 3 deletions

View File

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