Fix configuration page errors (#24)
Some checks failed
/ release (push) Has been cancelled
Tests / test (push) Has been cancelled
/ pullrequest (push) Has been cancelled

This commit is contained in:
blackcoffeexbt 2026-01-12 11:35:43 +00:00 • committed by GitHub
commit 2b322863ca
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
2 changed files with 2 additions and 6 deletions

View file

@ -30,11 +30,7 @@ window.app = Vue.createApp({
fetchConfig() { fetchConfig() {
this.entries = [] this.entries = []
LNbits.api LNbits.api
.request( .request('GET', '/nwcprovider/api/v1/config')
'GET',
'/nwcprovider/api/v1/config',
this.g.user.wallets[0].adminkey
)
.then(response => { .then(response => {
this.config = response.data this.config = response.data
console.log('Config fetched:', this.config) console.log('Config fetched:', this.config)
@ -53,7 +49,7 @@ window.app = Vue.createApp({
const response = await LNbits.api.request( const response = await LNbits.api.request(
'POST', 'POST',
'/nwcprovider/api/v1/config', '/nwcprovider/api/v1/config',
this.g.user.wallets[0].adminkey, null,
data data
) )
Quasar.Notify.create({ Quasar.Notify.create({

0
static/routes.json Normal file
View file