From 8d3586f4d42a031206c02736440ff7767355888d Mon Sep 17 00:00:00 2001 From: valere Date: Mon, 28 Oct 2024 13:45:55 +0100 Subject: [PATCH] FEAT: api for playlists v0.2 --- server/api/playlists.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/server/api/playlists.ts b/server/api/playlists.ts index e3e5497..e6f325f 100644 --- a/server/api/playlists.ts +++ b/server/api/playlists.ts @@ -2,7 +2,7 @@ import fs from 'fs' import path from 'path' export default eventHandler(async (event) => { - const directoryPath = path.join(process.cwd(), '/app/media/files/music') // replace 'your-folder' with the folder you want to list + const directoryPath = path.join(process.cwd(), 'media/files/music') // replace 'your-folder' with the folder you want to list try { // Read the directory contents