CEC-2211 CAN signals view (#176)

* CEC-2211 CAN signals view

* Correct stg link
This commit is contained in:
John Wu
2022-08-05 10:58:06 -07:00
committed by GitHub
parent 260a8033bb
commit 34271bc658
11 changed files with 225 additions and 4 deletions

View File

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