CEC-4772 - carsconnected takes VINs in req body (#397)
This commit is contained in:
@@ -41,13 +41,14 @@ const vehiclesAPI = {
|
||||
.catch(errorHandler),
|
||||
|
||||
getConnections: async (vins, token) => {
|
||||
const u = `${API_ENDPOINT}/carsconnected?vins=${vins.join(",")}`;
|
||||
const u = `${API_ENDPOINT}/carsconnected`;
|
||||
return fetch(u, {
|
||||
method: "GET",
|
||||
method: "POST",
|
||||
headers: Object.assign(
|
||||
{ "Content-Type": "application/json" },
|
||||
getAuthHeaderOptions(token)
|
||||
),
|
||||
body: JSON.stringify(vins),
|
||||
})
|
||||
.then(fetchRespHandler)
|
||||
.catch(errorHandler);
|
||||
|
||||
Reference in New Issue
Block a user