solved ui bugs marketplace

This commit is contained in:
2025-03-28 13:55:30 +05:30
parent 813f620b4d
commit e4ef26331f
4 changed files with 92 additions and 18 deletions

View File

@@ -0,0 +1,14 @@
let BackEnd_url = `http://${process.env.REACT_APP_SERVER_MARKETPLACE_URL}`;
export const fetchAssets = async () => {
try {
const response = await fetch(`${BackEnd_url}/api/v1/getAllAssets`);
if (!response.ok) {
throw new Error("Network response was not ok");
}
const result = await response.json();
return result;
} catch (error) {
console.log("error: ", error);
// throw new Error(error.message);
}
};