2026-08-31 19:51:17 +03:00
|
|
|
import { getChat } from "@/src/server";
|
2026-08-22 02:18:27 +03:00
|
|
|
|
|
|
|
|
export async function GET(_req: Request, { params }: { params: Promise<{ id: string }> }) {
|
|
|
|
|
const { id } = await params;
|
|
|
|
|
const chat = getChat(id);
|
|
|
|
|
if (!chat) return Response.json({ error: "Not found" }, { status: 404 });
|
|
|
|
|
return Response.json(chat);
|
|
|
|
|
}
|