fix api endpoint

This commit is contained in:
Niko Storni 2019-11-14 17:53:04 -05:00
parent 167587081f
commit 6ad1f91862

View file

@ -16,7 +16,7 @@ let resolve = function(urls) {
return new Promise(function(resolve, reject) {
let options = {
method: "POST",
url: "https://api.lbry.tv/api/proxy",
url: "https://api.lbry.tv/api/v1/proxy",
headers:
{
"Content-Type": "application/json"
@ -54,7 +54,7 @@ let getTrending = function() {
return new Promise(function(resolve, reject) {
let options = {
method: "POST",
url: "https://api.lbry.tv/api/proxy",
url: "https://api.lbry.tv/api/v1/proxy",
headers:
{
"Content-Type": "application/json"
@ -107,6 +107,7 @@ let getTrending = function() {
} else
return resolve(daemonResponse.result.items);
});
});
};