From 83459227aa6edf25de1f738d9ee0e32fd4c04c1f Mon Sep 17 00:00:00 2001 From: valere Date: Sat, 4 Oct 2025 01:13:38 +0200 Subject: [PATCH] add folder for playlists api 2 --- server/api/playlists/[id].ts | 2 +- server/api/playlists/index.ts | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/server/api/playlists/[id].ts b/server/api/playlists/[id].ts index 46a9cc1..551a894 100644 --- a/server/api/playlists/[id].ts +++ b/server/api/playlists/[id].ts @@ -5,7 +5,7 @@ import { eventHandler } from 'h3' export default eventHandler(async (event) => { const id = event.context.params?.id || '' - const directoryPath = path.join(process.cwd(), 'media/files/music/' + id) // replace 'your-folder' with the folder you want to list + const directoryPath = path.join(process.cwd(), '/mnt/media/files/music/' + id) // replace 'your-folder' with the folder you want to list try { // Read the directory contents diff --git a/server/api/playlists/index.ts b/server/api/playlists/index.ts index d08dda1..402fb0d 100644 --- a/server/api/playlists/index.ts +++ b/server/api/playlists/index.ts @@ -3,7 +3,7 @@ import path from 'path' import { eventHandler } from 'h3' export default eventHandler(async (event) => { - const directoryPath = path.join(process.cwd(), '/media/files/music') + const directoryPath = path.join(process.cwd(), '/mnt/media/files/music') try { // Read the directory contents