mirror of
https://github.com/simon987/music-graph-ui.git
synced 2025-04-10 05:56:42 +00:00
temporarily update api url
This commit is contained in:
parent
05bb263cb3
commit
58466ae8d3
@ -23,10 +23,10 @@ let data = {
|
||||
}
|
||||
|
||||
function reloadInfo(artist) {
|
||||
Vue.http.get('http://localhost:3030/artist/details/' + artist.mbid)
|
||||
Vue.http.get('https://mm.simon987.net/api/artist/details/' + artist.mbid)
|
||||
.then(response => {
|
||||
response.json().then(info => {
|
||||
info.covers = info.releases.map(mbid => 'http://localhost:3030/cover/' + mbid)
|
||||
info.covers = info.releases.map(mbid => 'https://mm.simon987.net/api/cover/' + mbid)
|
||||
|
||||
data.artistInfo = info
|
||||
})
|
||||
|
@ -351,7 +351,7 @@ function MusicGraph() {
|
||||
let mm = new MusicGraph()
|
||||
|
||||
function expandArtist(mbid) {
|
||||
d3.json('http://localhost:3030/artist/related/' + mbid)
|
||||
d3.json('https://mm.simon987.net/api/artist/related/' + mbid)
|
||||
.then((r) => {
|
||||
originArtist = r.artists.find(a => a.mbid === mbid)
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user