mirror of
https://github.com/jeffvli/feishin.git
synced 2026-05-07 04:20:12 +02:00
Add playlist list
This commit is contained in:
@@ -4,6 +4,7 @@ import type {
|
||||
AlbumDetailQuery,
|
||||
AlbumArtistListQuery,
|
||||
ArtistListQuery,
|
||||
PlaylistListQuery,
|
||||
} from './types';
|
||||
|
||||
export const queryKeys = {
|
||||
@@ -34,6 +35,11 @@ export const queryKeys = {
|
||||
musicFolders: {
|
||||
list: (serverId: string) => [serverId, 'musicFolders', 'list'] as const,
|
||||
},
|
||||
playlists: {
|
||||
list: (serverId: string, query?: PlaylistListQuery) =>
|
||||
[serverId, 'playlists', 'list', query] as const,
|
||||
root: (serverId: string) => [serverId, 'playlists'] as const,
|
||||
},
|
||||
server: {
|
||||
root: (serverId: string) => [serverId] as const,
|
||||
},
|
||||
|
||||
Reference in New Issue
Block a user