More picklists

This commit is contained in:
padamsen_fisker
2024-03-05 16:31:08 -05:00
parent f3b56c0e55
commit 8f011d11f2
7 changed files with 406 additions and 130 deletions

View File

@@ -261,8 +261,8 @@ const vehiclesAPI = {
.catch(errorHandler)
},
getAllFlashpacks: async (options, token) => {
return fetch(addQueryParams(`${API_ENDPOINT}/flashpack_versions`, options), {
getAllFlashpacks: async (model, trim, year, options, token) => {
return fetch(addQueryParams(`${API_ENDPOINT}/flashpack_versions/${model}/${trim}/${year}`, options), {
method: "GET",
headers: Object.assign(
{ "Content-Type": "application/json" },