tiqued/src/routes/tasks/+page.server.ts
themodrnhakr 136b58c44f Add /tasks route to load all tasks.
Currently just a proof of concept. The data is pulled from the database
and a few fields display in a table.
2025-09-27 23:28:57 -05:00

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