feat: task page
This commit is contained in:
8
packages/web/src/routes/progress/[id]/+page.server.ts
Normal file
8
packages/web/src/routes/progress/[id]/+page.server.ts
Normal file
@@ -0,0 +1,8 @@
|
||||
import { db, tasks } from "$lib/db/schema"
|
||||
import { eq } from "drizzle-orm"
|
||||
|
||||
export const load = async ({ params }) => {
|
||||
return {
|
||||
task: (await db.select().from(tasks).where(eq(tasks.id, params.id)))[0]
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user