diff --git a/src/constants/endpoints.js b/src/constants/endpoints.js index 19833112..2aeaf26a 100644 --- a/src/constants/endpoints.js +++ b/src/constants/endpoints.js @@ -11,6 +11,10 @@ const endpoints = { url: (applicationAbbreviation, pageName) => `/content/api/v1/content/${applicationAbbreviation}/${pageName}`, method: "GET", }, + GetVehicleYears: { + url: "/vehicle/api/v1/vehicle/years", + method: "GET", + }, }; export { endpoints }; diff --git a/src/layouts/vehicle-year/year-question/year-question.vue b/src/layouts/vehicle-year/year-question/year-question.vue index e69de29b..7b7ef327 100644 --- a/src/layouts/vehicle-year/year-question/year-question.vue +++ b/src/layouts/vehicle-year/year-question/year-question.vue @@ -0,0 +1,60 @@ + + + + \ No newline at end of file diff --git a/src/store/index.js b/src/store/index.js index 56668172..25e1c8b1 100644 --- a/src/store/index.js +++ b/src/store/index.js @@ -74,6 +74,15 @@ export const useMainStore = defineStore({ }); }, + // Vehicle API Actions + getVehicleYears() { + return globalMethods.callHttpClient({ + method: endpoints.GetVehicleYears.method, + endpoint: endpoints.GetVehicleYears.url, + payload: {}, + }); + }, + // Vehicle API Actions updateVehicleYear(year) {