HTTP endpoint for less-awkward server-side token management

This commit is contained in:
James Barnsley
2016-10-30 18:06:43 +13:00
parent 49b511b038
commit 474ebc6738
9 changed files with 63 additions and 58 deletions

View File

@ -130,7 +130,7 @@ function refreshToken( dispatch, getState ){
$.ajax({
method: 'GET',
url: '//'+getState().mopidy.host+':'+getState().mopidy.port+'/iris/http?action=refresh_spotify_token',
url: '//'+getState().mopidy.host+':'+getState().mopidy.port+'/iris/http/refresh_spotify_token',
dataType: "json",
timeout: 10000
})