mirror of
https://github.com/dat515-2025/Group-8.git
synced 2026-03-22 06:57:47 +01:00
feat(frontend): improved and centered UI
This commit is contained in:
@@ -88,7 +88,7 @@ export async function createTransaction(input: CreateTransactionInput): Promise<
|
||||
}
|
||||
|
||||
export async function getTransactions(): Promise<Transaction[]> {
|
||||
const res = await fetch(`${getBaseUrl()}/transactions/`, {
|
||||
const res = await fetch(`${getBaseUrl()}/transactions/`, {
|
||||
headers: { 'Content-Type': 'application/json', ...authHeaders() },
|
||||
});
|
||||
if (!res.ok) throw new Error('Failed to load transactions');
|
||||
|
||||
Reference in New Issue
Block a user