From e4caaac67e3038fd8a4a421887698cc542e3f187 Mon Sep 17 00:00:00 2001 From: Daniel Lugo Date: Wed, 13 Jan 2021 17:38:29 -0400 Subject: [PATCH] POST -> GET --- src/routes.js | 9 +++++++-- 1 file changed, 7 insertions(+), 2 deletions(-) diff --git a/src/routes.js b/src/routes.js index e38e0afa..f61a4857 100644 --- a/src/routes.js +++ b/src/routes.js @@ -1872,7 +1872,7 @@ module.exports = async ( ) }) - app.post('/api/lnd/listunspent', async (req, res) => { + const listunspent = async (req, res) => { try { return res.status(200).json({ utxos: await LV2.listUnspent( @@ -1885,7 +1885,12 @@ module.exports = async ( 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) => { const { lightning } = LightningServices.services