POST -> GET

This commit is contained in:
Daniel Lugo 2021-01-13 17:38:29 -04:00
parent 427c896f42
commit e4caaac67e

View file

@ -1872,7 +1872,7 @@ module.exports = async (
) )
}) })
app.post('/api/lnd/listunspent', async (req, res) => { const listunspent = async (req, res) => {
try { try {
return res.status(200).json({ return res.status(200).json({
utxos: await LV2.listUnspent( utxos: await LV2.listUnspent(
@ -1885,7 +1885,12 @@ module.exports = async (
errorMessage: e.message errorMessage: e.message
}) })
} }
}) }
app.get('/api/lnd/listunspent', listunspent)
// TODO: should be GET
app.post('/api/lnd/listunspent', listunspent)
app.get('/api/lnd/transactions', (req, res) => { app.get('/api/lnd/transactions', (req, res) => {
const { lightning } = LightningServices.services const { lightning } = LightningServices.services