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