From 22358b3ebb24f65c045cbd394ab8135b9838f6be Mon Sep 17 00:00:00 2001 From: valere Date: Sat, 4 Oct 2025 01:08:14 +0200 Subject: [PATCH] add folder for playlists api --- docker-compose.yml | 2 ++ server/api/playlists/index.ts | 2 +- 2 files changed, 3 insertions(+), 1 deletion(-) diff --git a/docker-compose.yml b/docker-compose.yml index 4349d86..9486f93 100755 --- a/docker-compose.yml +++ b/docker-compose.yml @@ -9,6 +9,8 @@ services: working_dir: /app ports: - "${PORT}:${PORT_EXPOSED}" + volumes: + - $MEDIA_DIR:/mnt/media environment: VIRTUAL_HOST: "${DOMAIN}" LETSENCRYPT_HOST: "${DOMAIN}" diff --git a/server/api/playlists/index.ts b/server/api/playlists/index.ts index cd0d0c1..d08dda1 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(), '/media/files/music') try { // Read the directory contents