You cannot select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
18 lines
681 B
TypeScript
18 lines
681 B
TypeScript
import exprs from 'express';
|
|
const { Router } = exprs;
|
|
import { isAuthenticated } from '../../utils/authCheck.js';
|
|
import { listPeerChannels, openChannel, setChannelFee, closeChannel, listForwards, funderUpdatePolicy } from '../../controllers/cln/channels.js';
|
|
|
|
const router = Router();
|
|
|
|
router.get('/listPeerChannels', isAuthenticated, listPeerChannels);
|
|
router.post('/', isAuthenticated, openChannel);
|
|
router.post('/setChannelFee', isAuthenticated, setChannelFee);
|
|
router.delete('/:channelId', isAuthenticated, closeChannel);
|
|
|
|
router.get('/listForwards', isAuthenticated, listForwards);
|
|
|
|
router.post('/funderUpdate', isAuthenticated, funderUpdatePolicy);
|
|
|
|
export default router;
|