added endpoint to constants to be more uniform

This commit is contained in:
Jason Wheeler 2022-12-07 12:03:14 -05:00
parent ffb3c01693
commit 71b68f2e36
2 changed files with 6 additions and 2 deletions

View file

@ -122,6 +122,10 @@ const endpoints = {
url: "/experiments/api/v1/experiments/run", url: "/experiments/api/v1/experiments/run",
method: "POST", method: "POST",
}, },
LookupVinByImage: {
url: "https://slimagetovin.azurewebsites.net/home/FindVIN",
method: "POST",
},
}; };
export { endpoints }; export { endpoints };

View file

@ -533,8 +533,8 @@ export const actions = {
const data = new FormData(); const data = new FormData();
data.append("file", image); data.append("file", image);
return globalMethods.callSimpleHttpClient({ return globalMethods.callSimpleHttpClient({
method: "POST", method: endpoints.LookupVinByImage.method,
endpoint: "https://slimagetovin.azurewebsites.net/home/FindVIN", endpoint: endpoints.LookupVinByImage.url,
payload: data, payload: data,
}); });
}, },