CEC-6051 - Fix getting all VINS from a fleet for bulk actions

This commit is contained in:
padamsen_fisker
2024-05-31 16:42:50 -04:00
parent 8294647d27
commit 4399498326
2 changed files with 14 additions and 3 deletions

View File

@@ -74,6 +74,17 @@ const fleetsAPI = {
.then(fetchRespHandler)
.catch(errorHandler),
getFleetVINs: async (name, token) =>
fetch(`${API_ENDPOINT}/fleet/${name}/vins`, {
method: "GET",
headers: Object.assign(
{ "Content-Type": "application/json" },
getAuthHeaderOptions(token)
),
})
.then(fetchRespHandler)
.catch(errorHandler),
addFleetVehicles: async (name, payload, token) =>
fetch(`${API_ENDPOINT}/fleet/${name}/vehicles/add`, {
method: "POST",