collected laon application details
This commit was merged in pull request #45.
This commit is contained in:
@@ -1,12 +1,11 @@
|
||||
import { postAuxEnd } from "./axiosCall";
|
||||
|
||||
|
||||
// FUNCTION TO START BVN VALIDATION
|
||||
export const validateBVN = (postData:any) => {
|
||||
let reqData = {
|
||||
...postData
|
||||
}
|
||||
return postAuxEnd('https://digifi-apidev.chiefsoft.net/digiusers/v1/bvn', reqData)
|
||||
return postAuxEnd('/bvn', reqData)
|
||||
}
|
||||
|
||||
|
||||
@@ -15,5 +14,5 @@ export const verifyOTP = (postData:any) => {
|
||||
let reqData = {
|
||||
...postData
|
||||
}
|
||||
return postAuxEnd('https://digifi-apidev.chiefsoft.net/digiusers/v1/bvn/verify', reqData)
|
||||
return postAuxEnd('/bvn/verify', reqData)
|
||||
}
|
||||
@@ -1,12 +1,12 @@
|
||||
import axios from "axios";
|
||||
|
||||
export function postAuxEnd(uri:string, reqData:any):Promise<any> {
|
||||
// const endPoint = import.meta.env.REACT_APP_USERS_ENDPOINT + uri;
|
||||
const endPoint = import.meta.env.VITE_USERS_ENDPOINT + uri;
|
||||
const formData = new FormData();
|
||||
for (let value in reqData) {
|
||||
formData.append(value, reqData[value]);
|
||||
}
|
||||
return axios.post(uri, formData)
|
||||
return axios.post(endPoint, formData)
|
||||
.then((response:{}) => {
|
||||
// if (response.data.internal_return == "-9999") {
|
||||
// localStorage.clear();
|
||||
|
||||
Reference in New Issue
Block a user