carnet panel contact
This commit is contained in:
parent
787c04f386
commit
20d38dd8ea
@ -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) => ({
|
||||
|
||||
Loading…
Reference in New Issue
Block a user