get all poems workin, get semantic search workin, get thoughts section working

This commit is contained in:
2024-06-02 19:01:57 -04:00
parent de9cccabda
commit 2faf292aab
168 changed files with 3204 additions and 31 deletions

View File

@@ -0,0 +1,15 @@
export const load = async ({ fetch, url }) => {
const limit = 8;
const page = Number(url.searchParams.get('page')) || 1;
const response = await fetch(`/api/thoughts?limit=${limit}&page=${page}`);
const { posts, total } = await response.json();
return {
posts,
total,
page,
limit
};
};