feat: load data from marka

This commit is contained in:
Max Richter
2025-10-04 13:07:11 +02:00
parent f84704d20b
commit fba2337b9c
11 changed files with 78 additions and 57 deletions

View File

@@ -1,10 +1,10 @@
export async function listResource(id: string): Promise<any[]> {
try {
const response = await fetch(
`http://localhost:8080/resources?name=${id}`,
`http://localhost:8080/${id}`,
);
return await response.json();
} catch (error) {
return []
return [];
}
}