FEAT: api for playlists v0.2

This commit is contained in:
valere
2024-10-28 13:45:55 +01:00
parent 799c944e01
commit 8d3586f4d4

View File

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