Basic pagination en Artistas
This commit is contained in:
@@ -8,8 +8,8 @@ export async function getArtist(mbid) {
|
||||
return response.data
|
||||
}
|
||||
|
||||
export async function getArtistDiscs(mbid, per_page=10) {
|
||||
const url = `${baseUrl}/artist/${mbid}/discs?per_page=${per_page}`;
|
||||
export async function getArtistDiscs(mbid, page = 1, per_page=10) {
|
||||
const url = `${baseUrl}/artist/${mbid}/discs?per_page=${per_page}&page=${page}`;
|
||||
const response = await axios.get(url);
|
||||
return response.data
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user