Cherry-pick: Update to call local DigitalAPI endpoint

This commit is contained in:
Chloe Herd 2023-03-08 13:25:13 -05:00
parent 2dc6ef3305
commit f7b9b79cfb
3 changed files with 2 additions and 7 deletions

View file

@ -55,7 +55,7 @@ const endpoints = {
method: "POST", method: "POST",
}, },
LookupVinByImage: { LookupVinByImage: {
url: "https://api.dev.belronus.io/ocr/api/v1/VIN", url: "https://localhost:44331/vehicle/api/v1/vehicle/vins-by-image",
method: "POST", method: "POST",
}, },
IsVinByAddressPermissible: { IsVinByAddressPermissible: {

View file

@ -60,11 +60,6 @@ export default {
method: method, method: method,
url: endpoint, url: endpoint,
data: payload, data: payload,
crossDomain: true,
headers: {
"Access-Control-Allow-Origin": "*",
"X-Mule-Origin-Verify": "98SHAXE5DN8AWQJRYCT09KIO1RZ2PG",
},
}).then( }).then(
(response) => { (response) => {
return resolve(response); return resolve(response);

View file

@ -532,7 +532,7 @@ export const actions = {
}, },
lookupVinByImage(context, image) { lookupVinByImage(context, image) {
const data = new FormData(); const data = new FormData();
data.append("vinFile", image); data.append("vinImage", image);
return globalMethods.callExternalHttpClient({ return globalMethods.callExternalHttpClient({
method: endpoints.LookupVinByImage.method, method: endpoints.LookupVinByImage.method,
endpoint: endpoints.LookupVinByImage.url, endpoint: endpoints.LookupVinByImage.url,