add folder for playlists api
This commit is contained in:
@@ -9,6 +9,8 @@ services:
|
|||||||
working_dir: /app
|
working_dir: /app
|
||||||
ports:
|
ports:
|
||||||
- "${PORT}:${PORT_EXPOSED}"
|
- "${PORT}:${PORT_EXPOSED}"
|
||||||
|
volumes:
|
||||||
|
- $MEDIA_DIR:/mnt/media
|
||||||
environment:
|
environment:
|
||||||
VIRTUAL_HOST: "${DOMAIN}"
|
VIRTUAL_HOST: "${DOMAIN}"
|
||||||
LETSENCRYPT_HOST: "${DOMAIN}"
|
LETSENCRYPT_HOST: "${DOMAIN}"
|
||||||
|
|||||||
@@ -3,7 +3,7 @@ import path from 'path'
|
|||||||
import { eventHandler } from 'h3'
|
import { eventHandler } from 'h3'
|
||||||
|
|
||||||
export default eventHandler(async (event) => {
|
export default eventHandler(async (event) => {
|
||||||
const directoryPath = path.join(process.cwd(), 'media/files/music')
|
const directoryPath = path.join(process.cwd(), '/media/files/music')
|
||||||
|
|
||||||
try {
|
try {
|
||||||
// Read the directory contents
|
// Read the directory contents
|
||||||
|
|||||||
Reference in New Issue
Block a user