Added playlist folder management

This commit is contained in:
patben8 committed 2026-09-25 13:26:37 +02:00
1 parent efdd0f6203
commit 88737f2b08
9 files changed
+416 -118

No files matched your search

+2
View File
@@ -625,6 +625,8 @@ export const api = {
state: () => getJSON<EditState>('/api/state'),
createPlaylist: (name: string, parentId?: string) =>
send<PlaylistNode>('POST', '/api/playlists', { name, parent_id: parentId ?? null }),
createFolder: (name: string, parentId?: string) =>
send<PlaylistNode>('POST', '/api/playlists/folders', { name, parent_id: parentId ?? null }),
renamePlaylist: (nodeId: string, name: string) =>
send<{ status: string }>('PATCH', `/api/playlists/${encodeURIComponent(nodeId)}`, { name }),
deletePlaylist: (nodeId: string) =>