fix api endpoint
This commit is contained in:
parent
167587081f
commit
6ad1f91862
1 changed files with 3 additions and 2 deletions
|
@ -16,7 +16,7 @@ let resolve = function(urls) {
|
||||||
return new Promise(function(resolve, reject) {
|
return new Promise(function(resolve, reject) {
|
||||||
let options = {
|
let options = {
|
||||||
method: "POST",
|
method: "POST",
|
||||||
url: "https://api.lbry.tv/api/proxy",
|
url: "https://api.lbry.tv/api/v1/proxy",
|
||||||
headers:
|
headers:
|
||||||
{
|
{
|
||||||
"Content-Type": "application/json"
|
"Content-Type": "application/json"
|
||||||
|
@ -54,7 +54,7 @@ let getTrending = function() {
|
||||||
return new Promise(function(resolve, reject) {
|
return new Promise(function(resolve, reject) {
|
||||||
let options = {
|
let options = {
|
||||||
method: "POST",
|
method: "POST",
|
||||||
url: "https://api.lbry.tv/api/proxy",
|
url: "https://api.lbry.tv/api/v1/proxy",
|
||||||
headers:
|
headers:
|
||||||
{
|
{
|
||||||
"Content-Type": "application/json"
|
"Content-Type": "application/json"
|
||||||
|
@ -107,6 +107,7 @@ let getTrending = function() {
|
||||||
} else
|
} else
|
||||||
return resolve(daemonResponse.result.items);
|
return resolve(daemonResponse.result.items);
|
||||||
|
|
||||||
|
|
||||||
});
|
});
|
||||||
});
|
});
|
||||||
};
|
};
|
||||||
|
|
Loading…
Add table
Reference in a new issue