carnet panel contact

This commit is contained in:
alma 2025-04-20 19:10:37 +02:00
parent 787c04f386
commit 20d38dd8ea

View File

@ -59,6 +59,12 @@ export async function GET(request: Request) {
const files = await client.getDirectoryContents(path);
console.log('Raw files response:', JSON.stringify(files, null, 2));
// Return all files for the Contacts folder
if (folder === 'Contacts') {
return NextResponse.json(files);
}
// For other folders, filter markdown files
const markdownFiles = files
.filter((file: any) => file.basename.endsWith('.md'))
.map((file: any) => ({