account view endpoint added

This commit was merged in pull request #9.
This commit is contained in:
victorAnumudu
2025-09-22 15:37:51 +01:00
parent f33a945384
commit 584225e08b
6 changed files with 76 additions and 20 deletions
+3
View File
@@ -17,6 +17,9 @@ const queryKeys = {
right_sidebar: ['right_sidebar'],
recent_signup: ['recent_signup'],
products: ['products'],
products_template: ['products_template'],
custom_template: ['custom_template'],
account_view: ['account_view'],
users_admin: ['users_admin'],
}
+15 -1
View File
@@ -98,9 +98,23 @@ export const getUsers = (reqData) => {
return getAuxEnd(`/users`, postData)
}
// FUNCTION TO GET PRODUCTS TEMPLATE DATA
export const getProductsTemplate = (reqData) => {
const postData = { ...reqData }
return getAuxEnd(`/products-template`, postData)
}
// FUNCTION TO GET CUSTOM TEMPLATE DATA
export const getCustomTemplate = (reqData) => {
const postData = { ...reqData }
return getAuxEnd(`/custom-template`, postData)
}
// FUNCTION TO VIEW SELECTED ACCOUNT DATA
export const getAccountView = (reqData) => {
const postData = { ...reqData }
return getAuxEnd(`/account-view`, postData)
}