diff --git a/src/shared/api.ts b/src/shared/api.ts index 987e865..754ebd5 100644 --- a/src/shared/api.ts +++ b/src/shared/api.ts @@ -70,13 +70,8 @@ export class API { } } - async getArtists(offset: any = 0, size: any = 400) { - const params = { - type: "random", - offset, - size, - }; - const data = await this.get("rest/getArtists", params); + async getArtists() { + const data = await this.get("rest/getArtists"); return data.artists.index.flatMap((index: any) => index.artist.map((artist: any) => ({ id: artist.id, name: artist.name, @@ -84,7 +79,6 @@ export class API { }))); } - async getAlbums(sort: AlbumSort, size: number = 500) { const params = { type: sort,