all repos — kōi @ 06d6c343bb7f758261d0ed471cf4711ef5310723

Minimalist task manager

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};