mirror of
https://github.com/idanoo/GoScrobble
synced 2025-07-17 05:21:53 +00:00
0.0.25
- Images now pull from spotify if setup! - Show top artists/album
This commit is contained in:
parent
b1de018b27
commit
8294791abe
12 changed files with 278 additions and 106 deletions
|
@ -326,3 +326,12 @@ export const getTopTracks = (uuid) => {
|
|||
return handleErrorResp(error)
|
||||
});
|
||||
}
|
||||
|
||||
export const getTopArtists = (uuid) => {
|
||||
return axios.get(process.env.REACT_APP_API_URL + "artists/top/" + uuid).then(
|
||||
(data) => {
|
||||
return data.data;
|
||||
}).catch((error) => {
|
||||
return handleErrorResp(error)
|
||||
});
|
||||
}
|
Loading…
Add table
Add a link
Reference in a new issue