loadmore tracks, albums, artists

This commit is contained in:
geoffrey45
2022-02-26 07:57:02 +03:00
parent 2143ad7139
commit 8459310258
11 changed files with 198 additions and 46 deletions
+42
View File
@@ -0,0 +1,42 @@
import axios from "axios";
const url = "http://0.0.0.0:9876/search/loadmore";
async function loadMoreTracks(start) {
const response = await axios.get(url, {
params: {
type: "tracks",
start: start,
},
});
return response.data;
}
async function loadMoreAlbums(start) {
const response = await axios.get(url, {
params: {
type: "albums",
start: start,
},
});
return response.data;
}
async function loadMoreArtists(start) {
const response = await axios.get(url, {
params: {
type: "artists",
start: start,
},
});
return response.data;
}
export default {
loadMoreTracks,
loadMoreAlbums,
loadMoreArtists,
};