bitsongofficial / radio-player

A simple Radio UI Player by bitsong
Other
0 stars 1 forks source link

Genre api endpoint retrive into player #16

Open eti88 opened 3 years ago

eti88 commented 3 years ago

Due to api changes the previous method getByExplore used into: pages/radio/genre/index.vue not working anymore. Now there are two new method getExploreGenres and getExploreCountries for retrieve genres and countries. Is this a suitable change?

const exploreGenres = await this.$api.getExploreGenres()
this.countries = await this.$api.getExploreCountries()
this.countries = explore.countries;
this.genres = exploreGenres.map(g => g.genre)