79429694

Date: 2025-02-11 10:53:58
Score: 0.5
Natty:
Report link

While the former's explaination is correct, the code still has a mistake since it needs to be awaited on params before accessing the attribute.

export async function GET(
  request: Request,
  {params}: { params: Promise<{ id: string }> }
) {
  const id = (await params).id
  // rest of your code
}
Reasons:
  • Low length (0.5):
  • Has code block (-0.5):
  • Low reputation (0.5):
Posted by: travelhawk