barter-system

This commit is contained in:
Flatlogic Bot 2025-11-10 04:13:10 +00:00
parent 40165f834e
commit 2452c912c2
2 changed files with 2 additions and 2 deletions

View File

@ -31,10 +31,10 @@ async function loadDashboardData() {
// --- IMPORTANT --- // --- IMPORTANT ---
// Replace this URL with the actual URL of your Node.js backend API. // 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. // 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 { try {
const response = await fetch(backendApiUrl); const response = await fetch(API_URL);
if (!response.ok) { if (!response.ok) {
// If the response is not OK (e.g., 404, 500), throw an error. // If the response is not OK (e.g., 404, 500), throw an error.
throw new Error(`HTTP error! status: ${response.status}`); throw new Error(`HTTP error! status: ${response.status}`);

Binary file not shown.

After

Width:  |  Height:  |  Size: 110 KiB