Skip to content

⚡️⚡️⚡️ Self-hosted collaborative bookmark manager to collect, read, annotate, and fully preserve what matters, all in one place.

323 B
Raw Blame
const getPublicCollectionData = async (collectionId: number) => {
  const res = await fetch("/api/v1/public/collections/" + collectionId);

  if (res.status === 400)
    return { response: "Collection not found.", status: 400 };

  const data = await res.json();

  return data;
};

export default getPublicCollectionData;