Cherry-pick: Update to call local DigitalAPI endpoint
This commit is contained in:
parent
2dc6ef3305
commit
f7b9b79cfb
3 changed files with 2 additions and 7 deletions
|
|
@ -55,7 +55,7 @@ const endpoints = {
|
|||
method: "POST",
|
||||
},
|
||||
LookupVinByImage: {
|
||||
url: "https://api.dev.belronus.io/ocr/api/v1/VIN",
|
||||
url: "https://localhost:44331/vehicle/api/v1/vehicle/vins-by-image",
|
||||
method: "POST",
|
||||
},
|
||||
IsVinByAddressPermissible: {
|
||||
|
|
|
|||
|
|
@ -60,11 +60,6 @@ export default {
|
|||
method: method,
|
||||
url: endpoint,
|
||||
data: payload,
|
||||
crossDomain: true,
|
||||
headers: {
|
||||
"Access-Control-Allow-Origin": "*",
|
||||
"X-Mule-Origin-Verify": "98SHAXE5DN8AWQJRYCT09KIO1RZ2PG",
|
||||
},
|
||||
}).then(
|
||||
(response) => {
|
||||
return resolve(response);
|
||||
|
|
|
|||
|
|
@ -532,7 +532,7 @@ export const actions = {
|
|||
},
|
||||
lookupVinByImage(context, image) {
|
||||
const data = new FormData();
|
||||
data.append("vinFile", image);
|
||||
data.append("vinImage", image);
|
||||
return globalMethods.callExternalHttpClient({
|
||||
method: endpoints.LookupVinByImage.method,
|
||||
endpoint: endpoints.LookupVinByImage.url,
|
||||
|
|
|
|||
Loading…
Reference in a new issue