Remove unneeded code.
This commit is contained in:
parent
2531f12ac3
commit
b3fa968439
2 changed files with 0 additions and 23 deletions
|
|
@ -122,10 +122,6 @@ 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 };
|
||||||
|
|
|
||||||
|
|
@ -53,25 +53,6 @@ export default {
|
||||||
});
|
});
|
||||||
},
|
},
|
||||||
|
|
||||||
callSimpleHttpClient({ method, endpoint, payload }) {
|
|
||||||
return new Promise((resolve, reject) => {
|
|
||||||
axios({
|
|
||||||
method: method,
|
|
||||||
url: endpoint,
|
|
||||||
data: payload,
|
|
||||||
crossDomain: true,
|
|
||||||
headers: { "Access-Control-Allow-Origin": "*" },
|
|
||||||
}).then(
|
|
||||||
(response) => {
|
|
||||||
return resolve(response);
|
|
||||||
},
|
|
||||||
(error) => {
|
|
||||||
return reject(error.response);
|
|
||||||
}
|
|
||||||
);
|
|
||||||
});
|
|
||||||
},
|
|
||||||
|
|
||||||
/* istanbul ignore next */
|
/* istanbul ignore next */
|
||||||
callMockHttpClient({ method, endpoint }) {
|
callMockHttpClient({ method, endpoint }) {
|
||||||
// For Mock use only!
|
// For Mock use only!
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue