- Get top tracks pulling correctly :)
This commit is contained in:
Daniel Mason 2021-04-08 19:00:13 +12:00
parent 3f3296e649
commit 07bce0ebc2
Signed by: idanoo
GPG key ID: 387387CDBC02F132
9 changed files with 259 additions and 27 deletions

View file

@ -317,3 +317,12 @@ export const getTrack = (uuid) => {
return handleErrorResp(error)
});
};
export const getTopTracks = (uuid) => {
return axios.get(process.env.REACT_APP_API_URL + "track/top/" + uuid).then(
(data) => {
return data.data;
}).catch((error) => {
return handleErrorResp(error)
});
}