parent
d083be1196
commit
475b47b7ea
@ -1,71 +0,0 @@
|
|||||||
### Core Lightning Commands Covered on RTL
|
|
||||||
|
|
||||||
=== bitcoin ===
|
|
||||||
- [x] feerates
|
|
||||||
- [x] newaddr
|
|
||||||
- [ ] txdiscard
|
|
||||||
- [ ] txprepare
|
|
||||||
- [ ] txsend
|
|
||||||
- [x] withdraw
|
|
||||||
|
|
||||||
=== channels ===
|
|
||||||
- [x] close
|
|
||||||
- [ ] fundchannel_cancel
|
|
||||||
- [ ] fundchannel_complete
|
|
||||||
- [ ] fundchannel_start
|
|
||||||
- [x] getroute
|
|
||||||
- [x] listchannels
|
|
||||||
- [x] listforwards
|
|
||||||
- [x] setchannelfee
|
|
||||||
|
|
||||||
=== network ===
|
|
||||||
- [x] connect
|
|
||||||
- [x] disconnect
|
|
||||||
- [x] listnodes
|
|
||||||
- [x] listpeers
|
|
||||||
- [ ] ping
|
|
||||||
|
|
||||||
=== payment ===
|
|
||||||
- [ ] createonion
|
|
||||||
- [x] decodepay
|
|
||||||
- [x] delexpiredinvoice
|
|
||||||
- [ ] delinvoice
|
|
||||||
- [x] invoice
|
|
||||||
- [x] listinvoices
|
|
||||||
- [x] listsendpays
|
|
||||||
- [ ] listtransactions
|
|
||||||
- [ ] sendonion
|
|
||||||
- [ ] sendpay
|
|
||||||
- [ ] waitanyinvoice
|
|
||||||
- [ ] waitinvoice
|
|
||||||
- [ ] waitsendpay
|
|
||||||
|
|
||||||
=== plugin ===
|
|
||||||
- [ ] autocleaninvoice
|
|
||||||
- [ ] estimatefees
|
|
||||||
- [x] fundchannel
|
|
||||||
- [ ] getchaininfo
|
|
||||||
- [ ] getrawblockbyheight
|
|
||||||
- [ ] getutxout
|
|
||||||
- [x] listpays
|
|
||||||
- [x] pay
|
|
||||||
- [ ] paystatus
|
|
||||||
- [ ] plugin
|
|
||||||
- [ ] sendrawtransaction
|
|
||||||
|
|
||||||
=== utility ===
|
|
||||||
- [ ] check
|
|
||||||
- [x] checkmessage
|
|
||||||
- [x] getinfo
|
|
||||||
- [ ] getlog
|
|
||||||
- [ ] getsharedsecret
|
|
||||||
- [ ] help
|
|
||||||
- [ ] listconfigs
|
|
||||||
- [x] listfunds
|
|
||||||
- [x] signmessage
|
|
||||||
- [ ] stop
|
|
||||||
- [ ] waitblockheight
|
|
||||||
|
|
||||||
=== developer ===
|
|
||||||
- [ ] dev-listaddrs
|
|
||||||
- [ ] dev-rescan-outputs
|
|
@ -1,57 +0,0 @@
|
|||||||
[Intro](../README.md) -- [Application Features](Application_features.md) -- [Road Map](Roadmap.md) -- **LND API Coverage** -- [Application Configurations](Application_configurations.md)
|
|
||||||
|
|
||||||
- [x] GenSeed
|
|
||||||
- [x] InitWallet
|
|
||||||
- [x] UnlockWallet
|
|
||||||
- [ ] ChangePassword
|
|
||||||
- [x] WalletBalance
|
|
||||||
- [x] ChannelBalance
|
|
||||||
- [x] GetTransactions
|
|
||||||
- [ ] EstimateFee
|
|
||||||
- [x] SendCoins
|
|
||||||
- [ ] ListUnspent
|
|
||||||
- [ ] SubscribeTransactions
|
|
||||||
- [ ] SendMany
|
|
||||||
- [x] NewAddress
|
|
||||||
- [x] SignMessage
|
|
||||||
- [x] VerifyMessage
|
|
||||||
- [x] ConnectPeer
|
|
||||||
- [x] DisconnectPeer
|
|
||||||
- [x] ListPeers
|
|
||||||
- [x] GetInfo
|
|
||||||
- [x] PendingChannels
|
|
||||||
- [x] ListChannels
|
|
||||||
- [ ] SubscribeChannelEvents
|
|
||||||
- [x] ClosedChannels
|
|
||||||
- [ ] OpenChannelSync
|
|
||||||
- [x] OpenChannel
|
|
||||||
- [x] CloseChannel
|
|
||||||
- [ ] AbandonChannel
|
|
||||||
- [x] SendPayment
|
|
||||||
- [ ] SendPaymentSync
|
|
||||||
- [ ] SendToRoute
|
|
||||||
- [ ] SendToRouteSync
|
|
||||||
- [x] AddInvoice
|
|
||||||
- [x] ListInvoices
|
|
||||||
- [ ] LookupInvoice
|
|
||||||
- [ ] SubscribeInvoices
|
|
||||||
- [x] DecodePayReq
|
|
||||||
- [x] ListPayments
|
|
||||||
- [ ] DeleteAllPayments
|
|
||||||
- [ ] DescribeGraph
|
|
||||||
- [x] GetChanInfo
|
|
||||||
- [x] GetNodeInfo
|
|
||||||
- [x] QueryRoutes
|
|
||||||
- [x] GetNetworkInfo
|
|
||||||
- [ ] StopDaemon
|
|
||||||
- [ ] SubscribeChannelGraph
|
|
||||||
- [ ] DebugLevel
|
|
||||||
- [x] FeeReport
|
|
||||||
- [x] UpdateChannelPolicy
|
|
||||||
- [x] ForwardingHistory
|
|
||||||
- [x] ExportChannelBackup
|
|
||||||
- [x] ExportAllChannelBackups
|
|
||||||
- [x] VerifyChanBackup
|
|
||||||
- [x] RestoreChannelBackups
|
|
||||||
- [ ] SubscribeChannelBackups
|
|
||||||
- [ ] Messages
|
|
@ -1,30 +0,0 @@
|
|||||||
import request from 'request-promise';
|
|
||||||
import { Logger } from '../../utils/logger.js';
|
|
||||||
import { Common } from '../../utils/common.js';
|
|
||||||
let options = null;
|
|
||||||
const logger = Logger;
|
|
||||||
const common = Common;
|
|
||||||
export const getBalance = (req, res, next) => {
|
|
||||||
logger.log({ selectedNode: req.session.selectedNode, level: 'INFO', fileName: 'Balance', msg: 'Getting Balance..' });
|
|
||||||
options = common.getOptions(req);
|
|
||||||
if (options.error) {
|
|
||||||
return res.status(options.statusCode).json({ message: options.message, error: options.error });
|
|
||||||
}
|
|
||||||
options.url = req.session.selectedNode.ln_server_url + '/v1/getBalance';
|
|
||||||
request(options).then((body) => {
|
|
||||||
if (!body.totalBalance) {
|
|
||||||
body.totalBalance = 0;
|
|
||||||
}
|
|
||||||
if (!body.confBalance) {
|
|
||||||
body.confBalance = 0;
|
|
||||||
}
|
|
||||||
if (!body.unconfBalance) {
|
|
||||||
body.unconfBalance = 0;
|
|
||||||
}
|
|
||||||
logger.log({ selectedNode: req.session.selectedNode, level: 'INFO', fileName: 'Balance', msg: 'Balance Received', data: body });
|
|
||||||
res.status(200).json(body);
|
|
||||||
}).catch((errRes) => {
|
|
||||||
const err = common.handleError(errRes, 'Balance', 'Get Balance Error', req.session.selectedNode);
|
|
||||||
return res.status(err.statusCode).json({ message: err.message, error: err.error });
|
|
||||||
});
|
|
||||||
};
|
|
@ -1,15 +1,12 @@
|
|||||||
import exprs from 'express';
|
import exprs from 'express';
|
||||||
const { Router } = exprs;
|
const { Router } = exprs;
|
||||||
import { isAuthenticated } from '../../utils/authCheck.js';
|
import { isAuthenticated } from '../../utils/authCheck.js';
|
||||||
import { listChannels, listPeerChannels, openChannel, setChannelFee, closeChannel, getLocalRemoteBalance, listForwards, funderUpdatePolicy, listForwardsPaginated } from '../../controllers/cln/channels.js';
|
import { listPeerChannels, openChannel, setChannelFee, closeChannel, listForwards, funderUpdatePolicy } from '../../controllers/cln/channels.js';
|
||||||
const router = Router();
|
const router = Router();
|
||||||
router.get('/listChannels', isAuthenticated, listChannels);
|
|
||||||
router.get('/listPeerChannels', isAuthenticated, listPeerChannels);
|
router.get('/listPeerChannels', isAuthenticated, listPeerChannels);
|
||||||
router.post('/', isAuthenticated, openChannel);
|
router.post('/', isAuthenticated, openChannel);
|
||||||
router.post('/setChannelFee', isAuthenticated, setChannelFee);
|
router.post('/setChannelFee', isAuthenticated, setChannelFee);
|
||||||
router.delete('/:channelId', isAuthenticated, closeChannel);
|
router.post('/close/', isAuthenticated, closeChannel);
|
||||||
router.get('/localRemoteBalance', isAuthenticated, getLocalRemoteBalance);
|
router.post('/listForwards', isAuthenticated, listForwards);
|
||||||
router.get('/listForwards', isAuthenticated, listForwards);
|
|
||||||
router.get('/listForwardsPaginated', isAuthenticated, listForwardsPaginated);
|
|
||||||
router.post('/funderUpdate', isAuthenticated, funderUpdatePolicy);
|
router.post('/funderUpdate', isAuthenticated, funderUpdatePolicy);
|
||||||
export default router;
|
export default router;
|
||||||
|
@ -1,11 +1,10 @@
|
|||||||
import exprs from 'express';
|
import exprs from 'express';
|
||||||
const { Router } = exprs;
|
const { Router } = exprs;
|
||||||
import { isAuthenticated } from '../../utils/authCheck.js';
|
import { isAuthenticated } from '../../utils/authCheck.js';
|
||||||
import { getRoute, listNode, listChannel, feeRates, listNodes } from '../../controllers/cln/network.js';
|
import { getRoute, listChannels, feeRates, listNodes } from '../../controllers/cln/network.js';
|
||||||
const router = Router();
|
const router = Router();
|
||||||
router.get('/getRoute/:destPubkey/:amount', isAuthenticated, getRoute);
|
router.post('/listNodes', isAuthenticated, listNodes);
|
||||||
router.get('/listNode/:id', isAuthenticated, listNode);
|
router.post('/getRoute', isAuthenticated, getRoute);
|
||||||
router.get('/listChannel/:channelShortId', isAuthenticated, listChannel);
|
router.post('/feeRates', isAuthenticated, feeRates);
|
||||||
router.get('/feeRates/:feeRateStyle', isAuthenticated, feeRates);
|
router.post('/listChannels', isAuthenticated, listChannels);
|
||||||
router.get('/listNodes', isAuthenticated, listNodes);
|
|
||||||
export default router;
|
export default router;
|
||||||
|
File diff suppressed because one or more lines are too long
File diff suppressed because one or more lines are too long
File diff suppressed because one or more lines are too long
File diff suppressed because one or more lines are too long
File diff suppressed because one or more lines are too long
File diff suppressed because one or more lines are too long
File diff suppressed because one or more lines are too long
File diff suppressed because one or more lines are too long
File diff suppressed because one or more lines are too long
File diff suppressed because one or more lines are too long
File diff suppressed because one or more lines are too long
File diff suppressed because one or more lines are too long
File diff suppressed because one or more lines are too long
@ -0,0 +1 @@
|
|||||||
|
(()=>{"use strict";var e,v={},m={};function r(e){var o=m[e];if(void 0!==o)return o.exports;var t=m[e]={id:e,loaded:!1,exports:{}};return v[e].call(t.exports,t,t.exports,r),t.loaded=!0,t.exports}r.m=v,e=[],r.O=(o,t,i,f)=>{if(!t){var a=1/0;for(n=0;n<e.length;n++){for(var[t,i,f]=e[n],s=!0,d=0;d<t.length;d++)(!1&f||a>=f)&&Object.keys(r.O).every(b=>r.O[b](t[d]))?t.splice(d--,1):(s=!1,f<a&&(a=f));if(s){e.splice(n--,1);var u=i();void 0!==u&&(o=u)}}return o}f=f||0;for(var n=e.length;n>0&&e[n-1][2]>f;n--)e[n]=e[n-1];e[n]=[t,i,f]},r.d=(e,o)=>{for(var t in o)r.o(o,t)&&!r.o(e,t)&&Object.defineProperty(e,t,{enumerable:!0,get:o[t]})},r.f={},r.e=e=>Promise.all(Object.keys(r.f).reduce((o,t)=>(r.f[t](e,o),o),[])),r.u=e=>e+"."+{125:"708b87b4f08ae30f",456:"21f2112ce22ca275",570:"1e18345ecab5f7fe",758:"8736aa34f95f1235"}[e]+".js",r.miniCssF=e=>{},r.o=(e,o)=>Object.prototype.hasOwnProperty.call(e,o),(()=>{var e={},o="RTLApp:";r.l=(t,i,f,n)=>{if(e[t])e[t].push(i);else{var a,s;if(void 0!==f)for(var d=document.getElementsByTagName("script"),u=0;u<d.length;u++){var l=d[u];if(l.getAttribute("src")==t||l.getAttribute("data-webpack")==o+f){a=l;break}}a||(s=!0,(a=document.createElement("script")).type="module",a.charset="utf-8",a.timeout=120,r.nc&&a.setAttribute("nonce",r.nc),a.setAttribute("data-webpack",o+f),a.src=r.tu(t)),e[t]=[i];var c=(g,b)=>{a.onerror=a.onload=null,clearTimeout(p);var h=e[t];if(delete e[t],a.parentNode&&a.parentNode.removeChild(a),h&&h.forEach(y=>y(b)),g)return g(b)},p=setTimeout(c.bind(null,void 0,{type:"timeout",target:a}),12e4);a.onerror=c.bind(null,a.onerror),a.onload=c.bind(null,a.onload),s&&document.head.appendChild(a)}}})(),r.r=e=>{typeof Symbol<"u"&&Symbol.toStringTag&&Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(e,"__esModule",{value:!0})},r.nmd=e=>(e.paths=[],e.children||(e.children=[]),e),(()=>{var e;r.tt=()=>(void 0===e&&(e={createScriptURL:o=>o},typeof trustedTypes<"u"&&trustedTypes.createPolicy&&(e=trustedTypes.createPolicy("angular#bundler",e))),e)})(),r.tu=e=>r.tt().createScriptURL(e),r.p="",(()=>{var e={666:0};r.f.j=(i,f)=>{var n=r.o(e,i)?e[i]:void 0;if(0!==n)if(n)f.push(n[2]);else if(666!=i){var a=new Promise((l,c)=>n=e[i]=[l,c]);f.push(n[2]=a);var s=r.p+r.u(i),d=new Error;r.l(s,l=>{if(r.o(e,i)&&(0!==(n=e[i])&&(e[i]=void 0),n)){var c=l&&("load"===l.type?"missing":l.type),p=l&&l.target&&l.target.src;d.message="Loading chunk "+i+" failed.\n("+c+": "+p+")",d.name="ChunkLoadError",d.type=c,d.request=p,n[1](d)}},"chunk-"+i,i)}else e[i]=0},r.O.j=i=>0===e[i];var o=(i,f)=>{var d,u,[n,a,s]=f,l=0;if(n.some(p=>0!==e[p])){for(d in a)r.o(a,d)&&(r.m[d]=a[d]);if(s)var c=s(r)}for(i&&i(f);l<n.length;l++)r.o(e,u=n[l])&&e[u]&&e[u][0](),e[u]=0;return r.O(c)},t=self.webpackChunkRTLApp=self.webpackChunkRTLApp||[];t.forEach(o.bind(null,0)),t.push=o.bind(null,t.push.bind(t))})()})();
|
@ -1 +0,0 @@
|
|||||||
(()=>{"use strict";var e,v={},m={};function r(e){var f=m[e];if(void 0!==f)return f.exports;var t=m[e]={id:e,loaded:!1,exports:{}};return v[e].call(t.exports,t,t.exports,r),t.loaded=!0,t.exports}r.m=v,e=[],r.O=(f,t,i,o)=>{if(!t){var a=1/0;for(n=0;n<e.length;n++){for(var[t,i,o]=e[n],s=!0,d=0;d<t.length;d++)(!1&o||a>=o)&&Object.keys(r.O).every(b=>r.O[b](t[d]))?t.splice(d--,1):(s=!1,o<a&&(a=o));if(s){e.splice(n--,1);var u=i();void 0!==u&&(f=u)}}return f}o=o||0;for(var n=e.length;n>0&&e[n-1][2]>o;n--)e[n]=e[n-1];e[n]=[t,i,o]},r.d=(e,f)=>{for(var t in f)r.o(f,t)&&!r.o(e,t)&&Object.defineProperty(e,t,{enumerable:!0,get:f[t]})},r.f={},r.e=e=>Promise.all(Object.keys(r.f).reduce((f,t)=>(r.f[t](e,f),f),[])),r.u=e=>e+"."+{125:"020bb8ec6698fd7e",456:"a54c45d211d6d10c",570:"28ed94d292ccd982",758:"2801e2da6f8bba94"}[e]+".js",r.miniCssF=e=>{},r.o=(e,f)=>Object.prototype.hasOwnProperty.call(e,f),(()=>{var e={},f="RTLApp:";r.l=(t,i,o,n)=>{if(e[t])e[t].push(i);else{var a,s;if(void 0!==o)for(var d=document.getElementsByTagName("script"),u=0;u<d.length;u++){var l=d[u];if(l.getAttribute("src")==t||l.getAttribute("data-webpack")==f+o){a=l;break}}a||(s=!0,(a=document.createElement("script")).type="module",a.charset="utf-8",a.timeout=120,r.nc&&a.setAttribute("nonce",r.nc),a.setAttribute("data-webpack",f+o),a.src=r.tu(t)),e[t]=[i];var c=(g,b)=>{a.onerror=a.onload=null,clearTimeout(p);var h=e[t];if(delete e[t],a.parentNode&&a.parentNode.removeChild(a),h&&h.forEach(y=>y(b)),g)return g(b)},p=setTimeout(c.bind(null,void 0,{type:"timeout",target:a}),12e4);a.onerror=c.bind(null,a.onerror),a.onload=c.bind(null,a.onload),s&&document.head.appendChild(a)}}})(),r.r=e=>{typeof Symbol<"u"&&Symbol.toStringTag&&Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(e,"__esModule",{value:!0})},r.nmd=e=>(e.paths=[],e.children||(e.children=[]),e),(()=>{var e;r.tt=()=>(void 0===e&&(e={createScriptURL:f=>f},typeof trustedTypes<"u"&&trustedTypes.createPolicy&&(e=trustedTypes.createPolicy("angular#bundler",e))),e)})(),r.tu=e=>r.tt().createScriptURL(e),r.p="",(()=>{var e={666:0};r.f.j=(i,o)=>{var n=r.o(e,i)?e[i]:void 0;if(0!==n)if(n)o.push(n[2]);else if(666!=i){var a=new Promise((l,c)=>n=e[i]=[l,c]);o.push(n[2]=a);var s=r.p+r.u(i),d=new Error;r.l(s,l=>{if(r.o(e,i)&&(0!==(n=e[i])&&(e[i]=void 0),n)){var c=l&&("load"===l.type?"missing":l.type),p=l&&l.target&&l.target.src;d.message="Loading chunk "+i+" failed.\n("+c+": "+p+")",d.name="ChunkLoadError",d.type=c,d.request=p,n[1](d)}},"chunk-"+i,i)}else e[i]=0},r.O.j=i=>0===e[i];var f=(i,o)=>{var d,u,[n,a,s]=o,l=0;if(n.some(p=>0!==e[p])){for(d in a)r.o(a,d)&&(r.m[d]=a[d]);if(s)var c=s(r)}for(i&&i(o);l<n.length;l++)r.o(e,u=n[l])&&e[u]&&e[u][0](),e[u]=0;return r.O(c)},t=self.webpackChunkRTLApp=self.webpackChunkRTLApp||[];t.forEach(f.bind(null,0)),t.push=f.bind(null,t.push.bind(t))})()})();
|
|
File diff suppressed because one or more lines are too long
File diff suppressed because one or more lines are too long
File diff suppressed because it is too large
Load Diff
@ -1,23 +0,0 @@
|
|||||||
import request from 'request-promise';
|
|
||||||
import { Logger, LoggerService } from '../../utils/logger.js';
|
|
||||||
import { Common, CommonService } from '../../utils/common.js';
|
|
||||||
let options = null;
|
|
||||||
const logger: LoggerService = Logger;
|
|
||||||
const common: CommonService = Common;
|
|
||||||
|
|
||||||
export const getBalance = (req, res, next) => {
|
|
||||||
logger.log({ selectedNode: req.session.selectedNode, level: 'INFO', fileName: 'Balance', msg: 'Getting Balance..' });
|
|
||||||
options = common.getOptions(req);
|
|
||||||
if (options.error) { return res.status(options.statusCode).json({ message: options.message, error: options.error }); }
|
|
||||||
options.url = req.session.selectedNode.ln_server_url + '/v1/getBalance';
|
|
||||||
request(options).then((body) => {
|
|
||||||
if (!body.totalBalance) { body.totalBalance = 0; }
|
|
||||||
if (!body.confBalance) { body.confBalance = 0; }
|
|
||||||
if (!body.unconfBalance) { body.unconfBalance = 0; }
|
|
||||||
logger.log({ selectedNode: req.session.selectedNode, level: 'INFO', fileName: 'Balance', msg: 'Balance Received', data: body });
|
|
||||||
res.status(200).json(body);
|
|
||||||
}).catch((errRes) => {
|
|
||||||
const err = common.handleError(errRes, 'Balance', 'Get Balance Error', req.session.selectedNode);
|
|
||||||
return res.status(err.statusCode).json({ message: err.message, error: err.error });
|
|
||||||
});
|
|
||||||
};
|
|
@ -1,21 +0,0 @@
|
|||||||
import request from 'request-promise';
|
|
||||||
import { Logger, LoggerService } from '../../utils/logger.js';
|
|
||||||
import { Common, CommonService } from '../../utils/common.js';
|
|
||||||
let options = null;
|
|
||||||
const logger: LoggerService = Logger;
|
|
||||||
const common: CommonService = Common;
|
|
||||||
|
|
||||||
export const getFees = (req, res, next) => {
|
|
||||||
logger.log({ selectedNode: req.session.selectedNode, level: 'INFO', fileName: 'Fees', msg: 'Getting Fees..' });
|
|
||||||
options = common.getOptions(req);
|
|
||||||
if (options.error) { return res.status(options.statusCode).json({ message: options.message, error: options.error }); }
|
|
||||||
options.url = req.session.selectedNode.ln_server_url + '/v1/getFees';
|
|
||||||
request(options).then((body) => {
|
|
||||||
if (!body.feeCollected) { body.feeCollected = 0; }
|
|
||||||
logger.log({ selectedNode: req.session.selectedNode, level: 'INFO', fileName: 'Fees', msg: 'Fee Received', data: body });
|
|
||||||
res.status(200).json(body);
|
|
||||||
}).catch((errRes) => {
|
|
||||||
const err = common.handleError(errRes, 'Fees', 'Get Fees Error', req.session.selectedNode);
|
|
||||||
return res.status(err.statusCode).json({ message: err.message, error: err.error });
|
|
||||||
});
|
|
||||||
};
|
|
@ -1,10 +0,0 @@
|
|||||||
import exprs from 'express';
|
|
||||||
const { Router } = exprs;
|
|
||||||
import { isAuthenticated } from '../../utils/authCheck.js';
|
|
||||||
import { getBalance } from '../../controllers/cln/balance.js';
|
|
||||||
|
|
||||||
const router = Router();
|
|
||||||
|
|
||||||
router.get('/', isAuthenticated, getBalance);
|
|
||||||
|
|
||||||
export default router;
|
|
@ -1,10 +0,0 @@
|
|||||||
import exprs from 'express';
|
|
||||||
const { Router } = exprs;
|
|
||||||
import { isAuthenticated } from '../../utils/authCheck.js';
|
|
||||||
import { getFees } from '../../controllers/cln/fees.js';
|
|
||||||
|
|
||||||
const router = Router();
|
|
||||||
|
|
||||||
router.get('/', isAuthenticated, getFees);
|
|
||||||
|
|
||||||
export default router;
|
|
@ -1,14 +1,13 @@
|
|||||||
import exprs from 'express';
|
import exprs from 'express';
|
||||||
const { Router } = exprs;
|
const { Router } = exprs;
|
||||||
import { isAuthenticated } from '../../utils/authCheck.js';
|
import { isAuthenticated } from '../../utils/authCheck.js';
|
||||||
import { getRoute, listNode, listChannel, feeRates, listNodes } from '../../controllers/cln/network.js';
|
import { getRoute, listChannels, feeRates, listNodes } from '../../controllers/cln/network.js';
|
||||||
|
|
||||||
const router = Router();
|
const router = Router();
|
||||||
|
|
||||||
router.get('/getRoute/:destPubkey/:amount', isAuthenticated, getRoute);
|
router.post('/listNodes', isAuthenticated, listNodes);
|
||||||
router.get('/listNode/:id', isAuthenticated, listNode);
|
router.post('/getRoute', isAuthenticated, getRoute);
|
||||||
router.get('/listChannel/:channelShortId', isAuthenticated, listChannel);
|
router.post('/feeRates', isAuthenticated, feeRates);
|
||||||
router.get('/feeRates/:feeRateStyle', isAuthenticated, feeRates);
|
router.post('/listChannels', isAuthenticated, listChannels);
|
||||||
router.get('/listNodes', isAuthenticated, listNodes);
|
|
||||||
|
|
||||||
export default router;
|
export default router;
|
||||||
|
Some files were not shown because too many files have changed in this diff Show More
Loading…
Reference in New Issue