Product page
This commit is contained in:
@@ -29,7 +29,7 @@ const postAuxEnd = (path, postData, media=false) => {
|
||||
})
|
||||
}
|
||||
|
||||
const getAuxEnd = (path) => {
|
||||
const getAuxEnd = (path, reqData=[]) => {
|
||||
const basePath = process.env.REACT_APP_MAIN_API
|
||||
return axios.get(`${basePath}${path}`).then(res => {
|
||||
return res
|
||||
@@ -65,3 +65,7 @@ export const recentActions = () => {
|
||||
export const productData = () => {
|
||||
return getAuxEnd(`/panel/account/products`)
|
||||
}
|
||||
|
||||
export const MyProductData = () => {
|
||||
return getAuxEnd(`/panel/myproduct/dash`)
|
||||
}
|
||||
Reference in New Issue
Block a user