Add music folders query

This commit is contained in:
jeffvli 2022-12-20 19:11:33 -08:00
parent 3399fc6bf6
commit a354cab797
11 changed files with 143 additions and 55 deletions

View file

@ -1,5 +1,4 @@
import type { AlbumListQuery, SongListQuery } from './types';
import type { AlbumDetailQuery } from './types';
import type { AlbumListQuery, SongListQuery, AlbumDetailQuery } from './types';
export const queryKeys = {
albums: {
@ -15,6 +14,9 @@ export const queryKeys = {
list: (serverId: string) => [serverId, 'genres', 'list'] as const,
root: (serverId: string) => [serverId, 'genres'] as const,
},
musicFolders: {
list: (serverId: string) => [serverId, 'musicFolders', 'list'] as const,
},
server: {
root: (serverId: string) => [serverId] as const,
},