import { getAllProjectTasks } from "@/lib/queries/tasks"; import { NextResponse } from "next/server"; // GET: Get all project tasks across all projects export async function GET() { try { const tasks = getAllProjectTasks(); return NextResponse.json(tasks); } catch (error) { return NextResponse.json( { error: "Failed to fetch all project tasks" }, { status: 500 } ); } }