mirror of
https://github.com/hex248/sprint.git
synced 2026-02-07 18:23:03 +00:00
include project owner
This commit is contained in:
@@ -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);
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user