Files
message-inbox-web-frontend-sdk/apps/web/app/api/bff/support/tickets/route.ts
T
2026-07-17 21:48:37 +05:30

10 lines
352 B
TypeScript

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) });
}