CEC-6051 - Fix getting all VINS from a fleet for bulk actions
This commit is contained in:
@@ -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",
|
||||
|
||||
Reference in New Issue
Block a user