include project owner

This commit is contained in:
Oliver Bryan
2025-12-14 23:18:11 +00:00
parent c458926bc1
commit 62febd8a29
6 changed files with 42 additions and 24 deletions

View File

@@ -1,9 +1,9 @@
import type { BunRequest } from "bun";
import { getAllProjects } from "../../db/queries";
import { getProjectsWithOwners } from "../../db/queries";
// /projects/all
export default async function projectsAll(req: BunRequest) {
const projects = await getAllProjects();
const projects = await getProjectsWithOwners();
return Response.json(projects);
}