added get user by ID API

This commit was merged in pull request #47.
This commit is contained in:
victorAnumudu
2024-05-01 17:33:41 +01:00
parent 135cbce348
commit a97db9a661
4 changed files with 47 additions and 8 deletions
+10 -1
View File
@@ -1,4 +1,4 @@
import { postAuxEnd } from "./axiosCall";
import { postAuxEnd, getAuxEnd } from "./axiosCall";
// FUNCTION TO START BVN VALIDATION
export const validateBVN = (postData:any) => {
@@ -24,4 +24,13 @@ export const applyForLoan = (postData:any) => {
...postData
}
return postAuxEnd('/loan/apply', reqData)
}
// FUNCTION TO GET USER BY CUSTOMER UID
export const getUserByID = () => {
let reqData = {
customer_uid: localStorage.getItem('uid'),
}
return getAuxEnd(`/profile?uid=${reqData.customer_uid}`, reqData)
}