first commit
This commit is contained in:
@@ -0,0 +1,9 @@
|
||||
import { NextRequest, NextResponse } from "next/server";
|
||||
import { getBackend } from "@/lib/backend";
|
||||
|
||||
export const dynamic = "force-dynamic";
|
||||
|
||||
export async function GET(req: NextRequest) {
|
||||
const scope = req.nextUrl.searchParams.get("scope") ?? undefined;
|
||||
return NextResponse.json({ tickets: await getBackend().listTickets(scope ?? undefined) });
|
||||
}
|
||||
Reference in New Issue
Block a user