first commit
This commit is contained in:
@@ -0,0 +1,12 @@
|
||||
import { NextRequest, NextResponse } from "next/server";
|
||||
import { getBackend } from "@/lib/backend";
|
||||
|
||||
export const dynamic = "force-dynamic";
|
||||
|
||||
export async function GET(
|
||||
_req: NextRequest,
|
||||
{ params }: { params: Promise<{ id: string; parentId: string }> },
|
||||
) {
|
||||
const { id, parentId } = await params;
|
||||
return NextResponse.json(await getBackend().thread(id, parentId));
|
||||
}
|
||||
Reference in New Issue
Block a user