chore: pnpm up
This commit is contained in:
10
src/helpers/memorium.ts
Normal file
10
src/helpers/memorium.ts
Normal file
@@ -0,0 +1,10 @@
|
||||
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 []
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user