PWA fixes
This commit is contained in:
parent
0f0e428391
commit
54bb3e6ee1
2 changed files with 3 additions and 2 deletions
|
|
@ -1,8 +1,9 @@
|
|||
const setAccessControlHeaders = (req, res) => {
|
||||
res.header("Access-Control-Allow-Origin", "*");
|
||||
res.header("Access-Control-Allow-Methods", "OPTIONS,POST,GET,PUT,DELETE")
|
||||
res.header(
|
||||
"Access-Control-Allow-Headers",
|
||||
"Origin, X-Requested-With, Content-Type, Accept, Authorization"
|
||||
"Origin, X-Requested-With, Content-Type, Accept, Authorization, public-key-for-decryption"
|
||||
);
|
||||
};
|
||||
|
||||
|
|
|
|||
|
|
@ -1124,7 +1124,7 @@ module.exports = async (
|
|||
app.get('/api/lnd/listchannels', async (_, res) => {
|
||||
try {
|
||||
return res.json({
|
||||
channels: await LV2.listChannels()
|
||||
channels: await LV2.listChannels({ active_only: false })
|
||||
})
|
||||
} catch (e) {
|
||||
console.log(e)
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue