Currently just a proof of concept. The data is pulled from the database and a few fields display in a table.
11 lines
272 B
TypeScript
11 lines
272 B
TypeScript
import TasksService from "$lib/server/services/tasks";
|
|
import type { PageServerLoad } from "./$types";
|
|
|
|
export const load: PageServerLoad = async () => {
|
|
const tasks = new TasksService("internal");
|
|
return {
|
|
tasks: await tasks.getAll(),
|
|
test: "string",
|
|
};
|
|
};
|