feat: initiate new home page

This commit is contained in:
swve 2023-05-07 16:05:18 +02:00
parent 7d6ba9ff2a
commit e86fca650e
9 changed files with 99 additions and 19 deletions

View file

@ -18,3 +18,12 @@ export async function createCollection(collection: any) {
const res = await errorHandling(result);
return res;
}
// Get collections
// TODO : add per org filter
export async function getOrgCollections() {
const result: any = await fetch(`${getAPIUrl()}collections/page/1/limit/10`);
const res = await errorHandling(result);
return res;
}