Base de vista de release

This commit is contained in:
Daniel Cortes
2020-06-16 04:15:35 -04:00
parent 2639427779
commit 81862efd80
5 changed files with 97 additions and 7 deletions

View File

@@ -26,13 +26,13 @@ export async function getDiscVersions(mbid, page = 1, per_page = 10) {
return response.data
}
export async function getVersion(mbid) {
export async function getRelease(mbid) {
const url = `${baseUrl}/release/${mbid}`;
const response = await axios.get(url);
return response.data
}
export async function getReleaseSongs(mbid, page = 1, per_page = 50) {
export async function getReleaseSongs(mbid) {
const url = `${baseUrl}/release/${mbid}/recordings`;
const response = await axios.get(url);
return response.data