FEAT: api for playlists v0.2
This commit is contained in:
@@ -2,7 +2,7 @@ import fs from 'fs'
|
|||||||
import path from 'path'
|
import path from 'path'
|
||||||
|
|
||||||
export default eventHandler(async (event) => {
|
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 {
|
try {
|
||||||
// Read the directory contents
|
// Read the directory contents
|
||||||
|
Reference in New Issue
Block a user