collected laon application details

This commit was merged in pull request #45.
This commit is contained in:
victorAnumudu
2024-04-30 01:02:48 +01:00
parent a50d5ec82d
commit e93a3dea68
12 changed files with 116 additions and 94 deletions
+2 -3
View File
@@ -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)
}
+2 -2
View File
@@ -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();