fix(server): updated ln markets to v1 api (#305)

This commit is contained in:
Victor Afanassieff 2021-07-23 22:04:41 +02:00 committed by GitHub
parent 5a212db898
commit ecb0e1cf49
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
2 changed files with 4 additions and 2 deletions

View File

@ -109,7 +109,9 @@ export const getLnMarketsAuth = async (
// Get a new lnUrl from LnMarkets
try {
const response = await fetchWithProxy(`${appUrls.lnMarkets}/lnurl/a/c`);
const response = await fetchWithProxy(`${appUrls.lnMarkets}/lnurl/auth`, {
method: 'post',
});
const json = await response.json();
logger.debug('Get lnUrl from LnMarkets response: %o', json);

View File

@ -12,7 +12,7 @@ export const appUrls = {
ticker: 'https://blockchain.info/ticker',
github: 'https://api.github.com/repos/apotdevin/thunderhub/releases/latest',
update: 'https://github.com/apotdevin/thunderhub#updating',
lnMarkets: 'https://api.lnmarkets.com',
lnMarkets: 'https://api.lnmarkets.com/v1',
lnMarketsExchange: 'https://lnmarkets.com',
boltz: 'https://boltz.exchange/api',
};