src/routes/(auth)/+page.server.ts (view raw)
1import { getSolidDataset, getThingAll } from '@inrupt/solid-client';
2import type { PageServerLoad } from './$types';
3
4export const load: PageServerLoad = async (event) => {
5 const session = await event.locals.getSession();
6 const dataset = await getSolidDataset('https://pod.5ika.ch/tasks/default', {
7 fetch: session.fetch
8 });
9 const taskSubjects = getThingAll(dataset);
10 return { taskSubjects };
11};