From 09089090a54dbe6269dab2c428bcc6dec1a54e16 Mon Sep 17 00:00:00 2001 From: alma Date: Sun, 20 Apr 2025 16:48:36 +0200 Subject: [PATCH] carnet panel2 --- app/api/nextcloud/files/route.ts | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/app/api/nextcloud/files/route.ts b/app/api/nextcloud/files/route.ts index 9e4c2dff..181c4218 100644 --- a/app/api/nextcloud/files/route.ts +++ b/app/api/nextcloud/files/route.ts @@ -47,12 +47,12 @@ export async function GET(request: Request) { const client = createClient({ username: credentials.username, password: credentials.password, - baseURL: `${normalizedBaseURL}/remote.php/dav/files/${credentials.username}/Private`, + baseURL: normalizedBaseURL, authType: 'basic', }); - // Construct the folder path without leading slash - const folderPath = folder; + // Construct the folder path + const folderPath = `remote.php/dav/files/${credentials.username}/Private/${folder}`; console.log('Full folder path:', folderPath); try {