transactions endpoint added

This commit is contained in:
victorAnumudu
2025-04-24 14:18:51 +01:00
parent f3b09a0ea2
commit cea0ebfe82
4 changed files with 153 additions and 21 deletions
+1
View File
@@ -1,6 +1,7 @@
const queryKeys = {
dashboard: ['dashboard'],
loans: ['loans'],
transactions: ['transactions'],
apply_loan: ['apply'],
select_loan: ['select-loan'],
approved_loan: ['approved-loan'],
+7 -1
View File
@@ -56,12 +56,18 @@ export const getDashData = (reqData) => {
return getAuxEnd(`/dashboard`, postData)
}
// FUNCTION TO GET APPLIED LOANS TABLE
// FUNCTION TO GET LOANS TABLE
export const getLoans = (reqData) => {
const postData = { ...reqData }
return getAuxEnd(`/loans`, postData)
}
// FUNCTION TO GET TRANSACTIONS TABLE
export const getTransactions = (reqData) => {
const postData = { ...reqData }
return getAuxEnd(`/transactions`, postData)
}