diff --git a/src/constants/endpoints.js b/src/constants/endpoints.js index 320952b4d..ea40af19d 100644 --- a/src/constants/endpoints.js +++ b/src/constants/endpoints.js @@ -1,14 +1,4 @@ const endpoints = { - GetRouteInfo: { - url: (applicationAbbreviation) => - `/content/api/v1/content/${applicationAbbreviation}/RouteInfo`, - method: "POST", - }, - GetHomepageInfo: { - url: (applicationAbbreviation) => - `/content/api/v1/content/${applicationAbbreviation}/HomepageInfo`, - method: "GET", - }, GetPageData: { url: (applicationAbbreviation, pageName) => `/content/api/v1/content/${applicationAbbreviation}/${pageName}`, diff --git a/src/constants/store-actions.js b/src/constants/store-actions.js index daa65d2cf..9b6fdb865 100644 --- a/src/constants/store-actions.js +++ b/src/constants/store-actions.js @@ -1,7 +1,5 @@ const storeActions = { // Content Actions - GET_ROUTE_INFO_ACTION: "getRouteInfo", - GET_HOMEPAGE_NAME: "getHomepageName", GET_PAGE_DATA: "getPageData", // Vehicle Actions diff --git a/src/store/index.js b/src/store/index.js index 673c4dfa1..910ffba66 100644 --- a/src/store/index.js +++ b/src/store/index.js @@ -956,26 +956,6 @@ export const actions = { context.commit(storeMutations.RESET_SAVE_SESSION_PROMISE); }, - // Content API Actions - getRouteInfo(context, { pageName }) { - return globalMethods.callHttpClient({ - method: endpoints.GetRouteInfo.method, - endpoint: endpoints.GetRouteInfo.url(applicationConfig.APPLICATION_ABBREVIATION), - payload: { - pageName: pageName, - }, - logApiCall: true, - pageNameToLog: pageName, - }); - }, - - getHomepageName(context) { - return globalMethods.callHttpClient({ - method: endpoints.GetHomepageInfo.method, - endpoint: endpoints.GetHomepageInfo.url(applicationConfig.APPLICATION_ABBREVIATION), - }); - }, - getPageData(context, { pageName }) { return globalMethods.callHttpClient({ method: endpoints.GetPageData.method, diff --git a/src/store/store.spec.js b/src/store/store.spec.js index 8353ec0d8..2d5d4578c 100644 --- a/src/store/store.spec.js +++ b/src/store/store.spec.js @@ -659,34 +659,6 @@ describe("Actions", () => { expect(commit).toBeCalledWith(storeMutations.RESET_STATE); }); - it("getRouteInfo action, returns route info", async () => { - // Arrange - const context = state; - - globalMethods.callHttpClient.mockImplementation(() => { - return Promise.resolve({ data: { Widget: "Data" } }); - }); - - // Act - const response = await actions.getRouteInfo(context, "vehicle-year"); - - expect(response.data).toEqual({ Widget: "Data" }); - }); - - it("getHomepageName action, returns homepage name", async () => { - // Arrange - const context = state; - - globalMethods.callHttpClient.mockImplementation(() => { - return Promise.resolve({ data: { Name: "vehicle-year" } }); - }); - - // Act - const response = await actions.getHomepageName(context); - - expect(response.data).toEqual({ Name: "vehicle-year" }); - }); - it("getPageData action, returns page data", async () => { // Arrange const context = state;