Added basic post creation.

This commit is contained in:
2023-06-06 01:30:46 +02:00
parent de757efc6e
commit 9a9b92a6b1
21 changed files with 556 additions and 23 deletions

View File

@@ -0,0 +1,15 @@
import { fetchShelves } from '../../src/shelves';
async function onBeforeRender(_pageContext) {
const shelves = await fetchShelves();
return {
pageContext: {
pageData: {
shelves,
},
},
};
}
export { onBeforeRender };