add folder for playlists api 2
All checks were successful
Deploy App / build (push) Successful in 1m9s
Deploy App / deploy (push) Successful in 16s

This commit is contained in:
valere
2025-10-04 01:13:38 +02:00
parent 22358b3ebb
commit 83459227aa
2 changed files with 2 additions and 2 deletions

View File

@@ -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

View File

@@ -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