mirror of
https://github.com/Ride-The-Lightning/RTL.git
synced 2025-03-13 03:12:49 +01:00
13 lines
762 B
JavaScript
13 lines
762 B
JavaScript
import exprs from 'express';
|
|
const { Router } = exprs;
|
|
import { isAuthenticated } from '../../utils/authCheck.js';
|
|
import { listChannels, openChannel, setChannelFee, closeChannel, getLocalRemoteBalance, listForwards, funderUpdatePolicy } from '../../controllers/cln/channels.js';
|
|
const router = Router();
|
|
router.get('/listChannels', isAuthenticated, listChannels);
|
|
router.post('/', isAuthenticated, openChannel);
|
|
router.post('/setChannelFee', isAuthenticated, setChannelFee);
|
|
router.delete('/:channelId', isAuthenticated, closeChannel);
|
|
router.get('/localRemoteBalance', isAuthenticated, getLocalRemoteBalance);
|
|
router.get('/listForwards', isAuthenticated, listForwards);
|
|
router.post('/funderUpdate', isAuthenticated, funderUpdatePolicy);
|
|
export default router;
|