diff --git a/assets/js/main.js b/assets/js/main.js index 1aac9fd..f2d23a1 100644 --- a/assets/js/main.js +++ b/assets/js/main.js @@ -31,10 +31,10 @@ async function loadDashboardData() { // --- IMPORTANT --- // Replace this URL with the actual URL of your Node.js backend API. // When running locally, your Node.js server might be on a different port. - const API_URL = 'http://localhost:4000/api/trades/received'; + const API_URL = 'http://localhost:4000/api/products'; try { - const response = await fetch(backendApiUrl); + const response = await fetch(API_URL); if (!response.ok) { // If the response is not OK (e.g., 404, 500), throw an error. throw new Error(`HTTP error! status: ${response.status}`); diff --git a/assets/pasted-20251110-021937-fe12aa28.png b/assets/pasted-20251110-021937-fe12aa28.png new file mode 100644 index 0000000..e6a2fd2 Binary files /dev/null and b/assets/pasted-20251110-021937-fe12aa28.png differ