added feneration assets

This commit is contained in:
2025-03-31 12:59:12 +05:30
parent e1200f52d0
commit cacb23ea5a
8 changed files with 100 additions and 75 deletions

View File

@@ -1,6 +1,5 @@
let BackEnd_url = `http://${process.env.REACT_APP_SERVER_MARKETPLACE_URL}`;
export const getCategoryAsset = async (categoryName: any) => {
console.log("categoryName:api ", categoryName);
try {
const response = await fetch(
`${BackEnd_url}/api/v2/getCatagoryAssets/${categoryName}`,
@@ -9,15 +8,12 @@ export const getCategoryAsset = async (categoryName: any) => {
headers: {
"Content-Type": "application/json",
},
// body: JSON.stringify({ filename }),
}
);
const result = await response.json();
console.log("result: ", result);
return result;
} catch (error: any) {
// console.error("Error fetching category:", error.message);
throw new Error(error.message);
}
};