refactor: use core currency and rate endpoints (#93)
This commit is contained in:
parent
f9ee067e88
commit
0cf2df2dcb
2 changed files with 1 additions and 17 deletions
|
|
@ -239,7 +239,7 @@ window.app = Vue.createApp({
|
|||
},
|
||||
updateFiatRate(currency) {
|
||||
LNbits.api
|
||||
.request('GET', '/lnurlp/api/v1/rate/' + currency, null)
|
||||
.request('GET', '/api/v1/rate/' + currency, null)
|
||||
.then(response => {
|
||||
let rates = _.clone(this.fiatRates)
|
||||
rates[currency] = response.data.rate
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue