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",
|
||||
method: "POST",
|
||||
},
|
||||
LookupVinByImage: {
|
||||
url: "https://slimagetovin.azurewebsites.net/home/FindVIN",
|
||||
method: "POST",
|
||||
},
|
||||
};
|
||||
|
||||
export { endpoints };
|
||||
|
|
|
|||
|
|
@ -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,
|
||||
});
|
||||
},
|
||||
|
|
|
|||
Loading…
Reference in a new issue