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",
method: "POST",
},
LookupVinByImage: {
url: "https://slimagetovin.azurewebsites.net/home/FindVIN",
method: "POST",
},
};
export { endpoints };

View file

@ -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,
});
},