fix: Update PrimeReact and fix all compilation errors

This commit is contained in:
Lions Dev
2025-10-13 05:18:02 +02:00
parent 6ebca4945c
commit 96eb956b0b
793 changed files with 11998 additions and 10690 deletions

0
app/api/auth/login/route.ts Normal file → Executable file
View File

0
app/api/auth/logout/route.ts Normal file → Executable file
View File

25
app/api/auth/token/route.ts Normal file → Executable file
View File

@@ -5,9 +5,32 @@ import { NextRequest, NextResponse } from 'next/server';
*/
export async function POST(request: NextRequest) {
try {
console.log('📥 POST /api/auth/token - Requête reçue:', {
method: request.method,
url: request.url,
headers: {
'content-type': request.headers.get('content-type'),
'content-length': request.headers.get('content-length'),
}
});
let body;
try {
body = await request.json();
const rawBody = await request.text();
console.log('📄 Corps brut de la requête:', {
length: rawBody.length,
preview: rawBody.substring(0, 100)
});
if (!rawBody || rawBody.trim() === '') {
console.error('❌ Corps de la requête vide');
return NextResponse.json(
{ error: 'Corps de la requête vide' },
{ status: 400 }
);
}
body = JSON.parse(rawBody);
} catch (jsonError) {
console.error('❌ Erreur parsing JSON:', jsonError.message);
return NextResponse.json(

0
app/api/health/route.ts Normal file → Executable file
View File

0
app/api/test-backend/route.ts Normal file → Executable file
View File

0
app/api/upload.ts Normal file → Executable file
View File