Files
max-richter.dev/src/helpers/memorium.ts
2025-07-20 14:15:44 +02:00

11 lines
240 B
TypeScript

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