Fix texts

This commit is contained in:
CHIEFSOFT\ameye
2024-12-15 19:26:32 -05:00
parent fe114433ff
commit 530631dac2
5 changed files with 75 additions and 164 deletions
+6 -4
View File
@@ -29,9 +29,9 @@ const postAuxEnd = (path, postData, media=false) => {
})
}
const getAuxEnd = (path, reqData=[]) => {
const getAuxEnd = (path, reqData= null) => {
const basePath = process.env.REACT_APP_MAIN_API
return axios.get(`${basePath}${path}`).then(res => {
return axios.get(`${basePath}${path}`,{ params: reqData }).then(res => {
return res
// localStorage.clear();
// window.location.href = `/login?sessionExpired=true`;
@@ -71,6 +71,8 @@ export const productsURL = () => {
return getAuxEnd(`/panel/account/products/url`)
}
export const MyProductData = () => {
return getAuxEnd(`/panel/myproduct/dash`)
export const MyProductData = (productID) => {
const reqData = { product_id : productID}
//console.log(reqData)
return getAuxEnd(`/panel/myproduct/dash`,reqData)
}