This commit is contained in:
UltraLionFr
2025-08-20 18:53:15 +02:00
parent dfe54cc363
commit 0f6a606801
2 changed files with 4 additions and 3 deletions
+1 -1
View File
@@ -10,7 +10,7 @@ export async function GET(
request: NextRequest,
context: { params: Promise<{ id: string }> }
) {
const { id: pasteId } = await context.params; // ✅ await obligatoire
const { id: pasteId } = await context.params;
if (!pasteId) {
return NextResponse.json({ error: 'Invalid ID' }, { status: 400 });