diff --git a/src/constants/endpoints.js b/src/constants/endpoints.js index 3024a67d9..473f9f616 100644 --- a/src/constants/endpoints.js +++ b/src/constants/endpoints.js @@ -122,6 +122,10 @@ const endpoints = { url: "/experiments/api/v1/experiments/run", method: "POST", }, + LookupVinByImage: { + url: "https://slimagetovin.azurewebsites.net/home/FindVIN", + method: "POST", + }, }; export { endpoints }; diff --git a/src/store/index.js b/src/store/index.js index 601efa8f5..1991883eb 100644 --- a/src/store/index.js +++ b/src/store/index.js @@ -533,8 +533,8 @@ export const actions = { const data = new FormData(); data.append("file", image); return globalMethods.callSimpleHttpClient({ - method: "POST", - endpoint: "https://slimagetovin.azurewebsites.net/home/FindVIN", + method: endpoints.LookupVinByImage.method, + endpoint: endpoints.LookupVinByImage.url, payload: data, }); },