added endpoint to constants to be more uniform
This commit is contained in:
parent
ffb3c01693
commit
71b68f2e36
2 changed files with 6 additions and 2 deletions
|
|
@ -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 };
|
||||||
|
|
|
||||||
|
|
@ -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,
|
||||||
});
|
});
|
||||||
},
|
},
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue