1a0b980b49
This reverts commit be95e11fa0.
8 lines
250 B
React
8 lines
250 B
React
const API_BASE = 'http://localhost:3000'; // Backend URL
|
|
|
|
export async function fetchCards() {
|
|
const response = await fetch(`${API_BASE}/exportCards`);
|
|
if (!response.ok) throw new Error('Failed to fetch cards');
|
|
return await response.json();
|
|
}
|