From 71b68f2e3665277cd560339780e421557727e377 Mon Sep 17 00:00:00 2001 From: Jason Wheeler Date: Wed, 7 Dec 2022 12:03:14 -0500 Subject: [PATCH] added endpoint to constants to be more uniform --- src/constants/endpoints.js | 4 ++++ src/store/index.js | 4 ++-- 2 files changed, 6 insertions(+), 2 deletions(-) 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, }); },