shack/pages/index/index.page.server.js

12 lines
174 B
JavaScript

import { fetchShelves } from '../../src/shelves';
async function getPageData() {
const shelves = await fetchShelves();
return {
shelves,
};
}
export { getPageData };