my product provision API added

This commit is contained in:
victorAnumudu
2025-01-13 11:05:59 +01:00
parent 484d872699
commit 098f59a929
3 changed files with 104 additions and 77 deletions
+2 -1
View File
@@ -3,7 +3,8 @@ const queryKeys = {
topBar: ['top-bar'],
recentAction: ['recent-action'],
product: ['product-data'],
product_url: ['product_url']
product_url: ['product_url'],
myproduct_provision: ['myproduct_provision']
}
export default queryKeys
+6
View File
@@ -106,6 +106,12 @@ export const recentActions = () => {
return getAuxEnd(`/panel/account/actions`)
}
// FUNCTION TO GET MY PRODUCT PROVISION DATA
export const productProvision = (productID) => {
const reqData = { product_id : productID}
return getAuxEnd(`/panel/myproduct/provision`,reqData)
}
// FUNCTION TO GET DASHBOARD PRODUCT DATA SECTION
export const productData = () => {
return getAuxEnd(`/panel/account/products`)